[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th i
From: |
Eduardo Ramos Fernández |
Subject: |
[Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter |
Date: |
Tue, 25 Mar 2014 00:01:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0 |
Follow-up Comment #6, bug #41839 (project octave):
Rik that definitly looks better. I have tried at college your test case plus
one with n and m being 2e3 in both Matlab and Octave (same pc).
Matlab:
>> tic; x = sprand (1e3, 1e3, 0.3, 0.7); toc
Elapsed time is 4.792556 seconds.
>> tic; x = sprand (2e3, 2e3, 0.3, 0.7); toc
Elapsed time is 48.590979 seconds.
Octave:
octave:42> tic; x = sprand (1e3, 1e3, 0.3, 0.7); toc
Elapsed time is 7 seconds.
octave:43> tic; x = sprand (2e3, 2e3, 0.3, 0.7); toc
Elapsed time is 56 seconds.
As you can see there is not such a difference in execution times between
Matlab's version and ours, so I am not unhappy. But yes it is not the fastest
algorithm for large matrices. Maybe a C++ implementation would speed up things
for the critical part of the code.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?41839>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions with 4rth parameter missing in Octave, Eduardo Ramos Fernández, 2014/03/11
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions with 4rth parameter missing in Octave, Eduardo Ramos Fernández, 2014/03/12
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions with 4rth parameter missing in Octave, Kai Torben Ohlhus, 2014/03/20
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions with 4rth parameter missing in Octave, Eduardo Ramos Fernández, 2014/03/21
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter, Rik, 2014/03/22
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter, Eduardo Ramos Fernández, 2014/03/22
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter, Eduardo Ramos Fernández, 2014/03/22
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter, Rik, 2014/03/23
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter,
Eduardo Ramos Fernández <=
- [Octave-bug-tracker] [bug #41839] sprand/sprandn functions missing 4th input parameter, Rik, 2014/03/24