diff options
author | Gael Guennebaud <g.gael@free.fr> | 2010-08-31 09:54:38 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2010-08-31 09:54:38 +0200 |
commit | b49dde01dc70e0c3d4b6b6d67d5050f7a475c87e (patch) | |
tree | 35524d217d8b76a39d3d555c88a9c0c48e122dad /test | |
parent | dd94f104429d417e6f40ac785a113ba872e56010 (diff) |
fix bad mat * mat * scalar when the implicit conversion operator to a Matrix is used
Diffstat (limited to 'test')
-rw-r--r-- | test/product_extra.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/product_extra.cpp b/test/product_extra.cpp index 1ee92c962..de105946e 100644 --- a/test/product_extra.cpp +++ b/test/product_extra.cpp @@ -110,6 +110,10 @@ template<typename MatrixType> void product_extra(const MatrixType& m) VERIFY_IS_APPROX(m1.col(j2).adjoint() * m1.block(0,j,m1.rows(),c), m1.col(j2).adjoint().eval() * m1.block(0,j,m1.rows(),c).eval()); VERIFY_IS_APPROX(m1.block(i,0,r,m1.cols()) * m1.row(i2).adjoint(), m1.block(i,0,r,m1.cols()).eval() * m1.row(i2).adjoint().eval()); + + // regression test + MatrixType tmp = m1 * m1.adjoint() * s1; + VERIFY_IS_APPROX(tmp, m1 * m1.adjoint() * s1); } void test_product_extra() |