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

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

[Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th i


From: Rik
Subject: [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter
Date: Mon, 24 Mar 2014 03:40:50 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0

Update of bug #41839 (project octave):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #5:

I reviewed your patch and checked it in here
(http://hg.savannah.gnu.org/hgweb/octave/rev/35a5e7740a6d).

sprand/sprandn had not been reviewed in a long time so I followed it up by
overhauling the functions in this changeset
(http://hg.savannah.gnu.org/hgweb/octave/rev/54a1e95365e1).

I did some tricks, like replacing the do/until loop with randperm and
pre-calculating the speye() portion of the U/V matrices outside the loop, to
speed things up.  Although the algorithm works, it seems pretty slow for large
matrices.


tic; x = sprand (1e3, 1e3, 0.3, 0.7); toc
Elapsed time is 11.2219 seconds.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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