aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/bdcsvd.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-18 18:26:20 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-18 18:26:20 +0100
commit72166d0e6eaf12a99f449e26f402f926bef2bb50 (patch)
treef3afbb09cc2777337c12a1595a026b5dbdcc5a19 /test/bdcsvd.cpp
parent5a3eaf88acbad04194e7e5fad6fe6ba9b3a20748 (diff)
Fix some maybe-unitialized warnings
Diffstat (limited to 'test/bdcsvd.cpp')
-rw-r--r--test/bdcsvd.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bdcsvd.cpp b/test/bdcsvd.cpp
index 85a80d6bb..ed35fc741 100644
--- a/test/bdcsvd.cpp
+++ b/test/bdcsvd.cpp
@@ -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) ));
}