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 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;