mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-03-07 18:27:40 +08:00
Add regression test for nesting type handling in blas_traits
This commit is contained in:
parent
7b7d2a9fa5
commit
09ad31aa85
@ -188,4 +188,12 @@ template<typename MatrixType> void product(const MatrixType& m)
|
|||||||
// CwiseUnaryOp
|
// CwiseUnaryOp
|
||||||
VERIFY_IS_APPROX(x = Scalar(1.)*(A*x), A*z);
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user