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

RedSVD Slower in C++ Implementation

Tags: None
(comma "," separated)
ronakagrawal
Registered Member
Posts
5
Karma
0

RedSVD Slower in C++ Implementation

Wed Oct 01, 2014 11:08 am
Hi

I have included the RedSVD (https://github.com/ntessore/redsvd-h) header file in the my C++ Code . Then I decomposed the matrix using SVD

If I am using command line I am able to get the output very early - Say 10sec
But If I use the HEADER FILE & EIGEN lIB, my prog takes 50 Sec to calculate SVD

Can i know why there is such difference

I am usign
mat.setFromTriplets(tripletList.begin(), tripletList.end())
to store the matrix
and calling
RedSVD::RedSVD<MatrixXf> S(mat);
to calculate SVD

Thanks
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
Make sure that you compiled with optimization ON (e.g., -O2) and that you explicitly asked for the same amount of singularvalues.


Bookmarks



Who is online

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