Ask Your Question

Revision history [back]

Get k largest singular values from SVD

Hi all, I'm using OpenCV to implement a PLS algorithm, and I need to run SVD in a big matrix. But I don't want all the singular values, just the largest one. In matlab I can do this by calling [u,s,v] = svds(A, 1); In OpenCV I'm doing cv::SVD::compute(A, s, u, v); Anyone has any idea? thx

Get k largest singular values from SVD

Hi all, I'm using OpenCV to implement a PLS algorithm, and I need to run SVD in a big matrix. But I don't want all the singular values, just the largest one. one.

In matlab I can do this by calling calling:

[u,s,v] = svds(A, 1);

In OpenCV I'm doing doing:

cv::SVD::compute(A, s, u, v);

Anyone has any idea? idea?

thx