daisukedemos / redsvd

Automatically exported from code.google.com/p/redsvd
0 stars 0 forks source link

Does not support Eigen::SparseMatrix<double>. #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following snippet won't compile.
Eigen::SparseMatrix<double> a(4, 5);
REDSVD::RedSVD svd(a, 2);

The precision of float is too low for some application.

Original issue reported on code.google.com by updog...@gmail.com on 23 Nov 2012 at 8:07

GoogleCodeExporter commented 9 years ago
I think so too.Here is a workaround.

Here is sample code of this workaround version.

#include "redsvd.hpp"
Eigen::SparseMatrix<double> a(4, 5);
REDSVD::RedSVD<double> svd(a, 2);

#It's tested on RedPCA class,gcc/FreeBSD

Original comment by you.akir...@gmail.com on 3 Jun 2013 at 6:01

Attachments: