aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2008-04-25 23:13:20 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2008-04-25 23:13:20 +0000
commit173e582e3ce7a7822cb40dbfe8855e642a5fc9f2 (patch)
tree9aa4089085df25c471a485d02dd894f0d7c429db /test/product.cpp
parent6f2c72fb537c18e5b3a2ddc1f1ba2ff2f4a38785 (diff)
added a tough test to check the determinant that currently fails
Diffstat (limited to 'test/product.cpp')
-rw-r--r--test/product.cpp7
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));
}