fix bksvd method

This commit is contained in:
AdarshSantoria
2023-02-14 02:29:12 +05:30
parent caf5543a94
commit e6616bd333
@@ -76,9 +76,9 @@ class BlockKrylovSVDPolicy
// Do singular value decomposition using the block krylov SVD algorithm.
RandomizedBlockKrylovSVD blockkrylovsvd;
blockkrylovsvd.Apply(data, w, sigma, h, rank);
// Sigma matrix is multiplied to w.
w = w * sigma;
w = w * arma::diagmat(sigma);
// Take transpose of the matrix h as required by CF class.
h = arma::trans(h);