aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/bdcsvd.cpp
diff options
context:
space:
mode:
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) ));
}