[Top][All Lists]

[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

sprand/sprandn had not been reviewed in a long time so I followed it up by
overhauling the functions in this changeset

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

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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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