aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-23 17:33:31 -0400
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2009-08-23 17:33:31 -0400
commita848ed02ad51f3223e11d7c39b59b9e2c16b634f (patch)
tree5aa7891affb4641dc897814d99ebb3c7dc8153d4 /test/main.h
parent90735b6a9cc4c91eb41ef1d2b6828f15a7f4fba3 (diff)
let createRandomMatrixOfRank support fixed-size!
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h
index aa563252f..e3866c68b 100644
--- a/test/main.h
+++ b/test/main.h
@@ -231,7 +231,7 @@ template<typename MatrixType>
void createRandomMatrixOfRank(int desired_rank, int rows, int cols, MatrixType& m)
{
typedef typename ei_traits<MatrixType>::Scalar Scalar;
- typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> VectorType;
+ typedef Matrix<Scalar, Dynamic, 1> VectorType;
MatrixType a = MatrixType::Random(rows,rows);
MatrixType d = MatrixType::Identity(rows,cols);