Fix some maybe-unitialized warnings

This commit is contained in:
Christoph Hertzberg
2019-12-18 18:26:20 +01:00
parent 5a3eaf88ac
commit 72166d0e6e
2 changed files with 6 additions and 3 deletions

View File

@@ -28,9 +28,11 @@
template<typename MatrixType>
void bdcsvd(const MatrixType& a = MatrixType(), bool pickrandom = true)
{
MatrixType m = a;
MatrixType m;
if(pickrandom)
svd_fill_random(m);
else
m = a;
CALL_SUBTEST(( svd_test_all_computation_options<BDCSVD<MatrixType> >(m, false) ));
}