This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to speed up SVD?

Tags: None
(comma "," separated)
hughperkins
Registered Member
Posts
6
Karma
0

How to speed up SVD?

Fri Oct 05, 2012 12:54 pm
Hi,

I run SVD on a 500*1000 dense double matrix of random number, with
thin U and V, and it takes about 26 seconds. The code looks like:

JacobiSVD<MatrixXd,HouseholderQRPreconditioner> svd(In,
ComputeThinU | ComputeThinV);

On matlab it takes about 1.1 seconds, though admittedly the solution
doesn't seem terribly accurate.

What are possible reasons for this disparity, and is there anything I
can do to improve the situation?

Hugh
User avatar
dzenanz
Registered Member
Posts
35
Karma
0
OS

Re: How to speed up SVD?

Wed Oct 10, 2012 10:27 am
Are you running your code in Debug or Release mode? Debug mode can be 1-2 orders of magnitude slower.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]