diff --git a/test/jacobisvd.cpp b/test/jacobisvd.cpp index f44e66c94..cf8c76055 100644 --- a/test/jacobisvd.cpp +++ b/test/jacobisvd.cpp @@ -132,6 +132,11 @@ void jacobisvd_test_all_computation_options(const MatrixType& m) jacobisvd_solve(m, ComputeThinU | ComputeFullV); jacobisvd_solve(m, ComputeThinU | ComputeThinV); } + + { + JacobiSVD svd(m, ComputeThinU | ComputeThinV); + VERIFY_IS_APPROX(m, svd.matrixU() * svd.singularValues().asDiagonal() * svd.matrixV().transpose()); + } } template