mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Fix unit-test which I broke in previous fix
This commit is contained in:
parent
7a65219a2e
commit
6965f6de7f
@ -29,8 +29,10 @@ template<typename MatrixType>
|
|||||||
void bdcsvd(const MatrixType& a = MatrixType(), bool pickrandom = true)
|
void bdcsvd(const MatrixType& a = MatrixType(), bool pickrandom = true)
|
||||||
{
|
{
|
||||||
MatrixType m;
|
MatrixType m;
|
||||||
if(pickrandom)
|
if(pickrandom) {
|
||||||
|
m.resizeLike(a);
|
||||||
svd_fill_random(m);
|
svd_fill_random(m);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
m = a;
|
m = a;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user