octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #34352] sprand/sprandn density argument is not


From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #34352] sprand/sprandn density argument is not very accurate
Date: Wed, 21 Sep 2011 23:42:06 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20110109 Moonfly/3.6.13

Follow-up Comment #1, bug #34352 (project octave):

Is this a bug?

The matrix you're testing isn't really sparse. If you want a 90% full sparse
matrix, you end up using more memory to store it than if you use dense
storage.

Asking around, it seems sprand's current behaviour matches Matlab's (in my
opinion, undocumented) behaviour.

That being said, this seems like really bizarre behaviour. I'm working on
perhaps a more sensible behaviour that uses randperm, and I saw that our
implementation of randperm is incompatible with Matlab's documented version.

I notice that there are two Matlab features of sprand that we haven't
implemented yet, which allow you to specify the condition number or the
singular values. That seems like a more pressing issue for sprand.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34352>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]