diff options
Diffstat (limited to 'test/product.cpp')
-rw-r--r-- | test/product.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/product.cpp b/test/product.cpp index a6b6a537d..782be8f82 100644 --- a/test/product.cpp +++ b/test/product.cpp @@ -34,6 +34,7 @@ template<typename MatrixType> void product(const MatrixType& m) typedef typename MatrixType::Scalar Scalar; typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, 1> VectorType; + typedef Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> SquareMatrixType; int rows = m.rows(); int cols = m.cols(); @@ -43,7 +44,8 @@ template<typename MatrixType> void product(const MatrixType& m) MatrixType m1 = MatrixType::random(rows, cols), m2 = MatrixType::random(rows, cols), m3(rows, cols), - mzero = MatrixType::zero(rows, cols), + mzero = MatrixType::zero(rows, cols); + SquareMatrixType identity = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> ::identity(rows, rows), square = Matrix<Scalar, MatrixType::RowsAtCompileTime, MatrixType::RowsAtCompileTime> @@ -95,7 +97,8 @@ void EigenTest::testProduct() product(Matrix<float, 1, 1>()); product(Matrix4d()); product(MatrixXcf(3, 3)); - product(MatrixXi(8, 12)); + product(MatrixXf(13, 25)); + product(MatrixXi(4, 4)); product(MatrixXcd(20, 20)); } |