From 09ad31aa855055b3ec423d2638bcb2345524ad2f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 29 Mar 2016 22:33:57 +0200 Subject: Add regression test for nesting type handling in blas_traits --- test/product.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/product.h') 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 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()); + } } -- cgit v1.2.3