diff options
Diffstat (limited to 'test/inplace_decomposition.cpp')
-rw-r--r-- | test/inplace_decomposition.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/inplace_decomposition.cpp b/test/inplace_decomposition.cpp index 4900312f1..92d0d91b6 100644 --- a/test/inplace_decomposition.cpp +++ b/test/inplace_decomposition.cpp @@ -20,8 +20,8 @@ template<typename DecType,typename MatrixType> void inplace(bool square = false, typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> RhsType; typedef Matrix<Scalar, MatrixType::ColsAtCompileTime, 1> ResType; - Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random<Index>(2,EIGEN_TEST_MAX_SIZE/2) : MatrixType::RowsAtCompileTime; - Index cols = MatrixType::ColsAtCompileTime==Dynamic ? (square?rows:internal::random<Index>(2,rows)) : MatrixType::ColsAtCompileTime; + Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random<Index>(2,EIGEN_TEST_MAX_SIZE/2) : Index(MatrixType::RowsAtCompileTime); + Index cols = MatrixType::ColsAtCompileTime==Dynamic ? (square?rows:internal::random<Index>(2,rows)) : Index(MatrixType::ColsAtCompileTime); MatrixType A = MatrixType::Random(rows,cols); RhsType b = RhsType::Random(rows); |