aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/product.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2016-03-29 22:33:57 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2016-03-29 22:33:57 +0200
commit09ad31aa855055b3ec423d2638bcb2345524ad2f (patch)
treec3fc00859ffee7e36f69bb24bf408399b1b5eea6 /test/product.h
parent7b7d2a9fa52fb4537849c69a0b193a9284b42bb1 (diff)
Add regression test for nesting type handling in blas_traits
Diffstat (limited to 'test/product.h')
-rw-r--r--test/product.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/product.h b/test/product.h
index 45bb64958..27976a4ae 100644
--- a/test/product.h
+++ b/test/product.h
@@ -188,4 +188,12 @@ template<typename MatrixType> void product(const MatrixType& m)
// CwiseUnaryOp
VERIFY_IS_APPROX(x = Scalar(1.)*(A*x), A*z);
}
+
+ // regression for blas_trais
+ {
+ VERIFY_IS_APPROX(square * (square*square).transpose(), square * square.transpose() * square.transpose());
+ VERIFY_IS_APPROX(square * (-(square*square)), -square * square * square);
+ VERIFY_IS_APPROX(square * (s1*(square*square)), s1 * square * square * square);
+ VERIFY_IS_APPROX(square * (square*square).conjugate(), square * square.conjugate() * square.conjugate());
+ }
}