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: Thu, 22 Sep 2011 02:44:13 +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 #2, bug #34352 (project octave):

I pushed a change to randperm to implement k-subsets:

http://hg.savannah.gnu.org/hgweb/octave/rev/2896c083576a

With this change, the attached cset implements the precise sprand density you
speak of. It also speeds up most calls of sprand. I'm not pushing it, though,
because it breaks apparent (but not documented) Matlab compatibility.

(file #24005)
    _______________________________________________________

Additional Item Attachment:

File name: sprand.patch                   Size:1 KB


    _______________________________________________________

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]