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

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

[Octave-bug-tracker] [bug #49940] The svd function takes very long time


From: Rik
Subject: [Octave-bug-tracker] [bug #49940] The svd function takes very long time for big matrices
Date: Tue, 27 Dec 2016 17:06:42 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49940 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

I benchmarked using the script tst_svd.m below


x = rand (2e3);

tic; sv = svd (x); bm1 = toc
tic; [u,s,v] = svd (x); bm2 = toc


I tried 1e3, 2e3, and 3e3 for the size of the matrices.  With the developent
version of Octave I get


octave:1> tst_svd
bm1 =  0.31309
bm2 =  3.2931
octave:2> tst_svd
bm1 =  2.8148
bm2 =  28.110
octave:3> tst_svd
bm1 =  9.4242
bm2 =  106.77


As you can see, requesting more than just the singular values is about 10X
slower.  Could you try running the same script in Matlab to get an idea of the
size of the performance hit there.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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