svd#

Perform a singular value decomposition (SVD) using the power iteration method.

template<typename OpA>
__MATX_INLINE__ auto matx::svd(const OpA &a, const char jobu = 'A', const char jobvt = 'A')#

Examples#

// cuSolver only supports col-major solving today, so we need to transpose,
// solve, then transpose again to compare to Python
(Atv = transpose(Av)).run(this->exec);

auto Atv2 = Atv.View({m, n});
(mtie(Uv, Sv, Vv) = svd(Atv2)).run(this->exec);