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