aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/bdcsvd.cpp
diff options
context:
space:
mode:
authorGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-19 13:42:14 +0100
committerGravatar Christoph Hertzberg <chtz@informatik.uni-bremen.de>2019-12-19 13:42:14 +0100
commit6965f6de7fec13f29ad95713a031c520efd3265c (patch)
treeb97ea92012383a0127be3236c7edb3ada2ac9ffc /test/bdcsvd.cpp
parent7a65219a2eb5c3d8a4b8629082a18c40dc6c332a (diff)
Fix unit-test which I broke in previous fix
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 ed35fc741..e92a7dc97 100644
--- a/test/bdcsvd.cpp
+++ b/test/bdcsvd.cpp
@@ -29,8 +29,10 @@ template<typename MatrixType>
void bdcsvd(const MatrixType& a = MatrixType(), bool pickrandom = true)
{
MatrixType m;
- if(pickrandom)
+ if(pickrandom) {
+ m.resizeLike(a);
svd_fill_random(m);
+ }
else
m = a;