mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
add regression test for aliasing in product rewritting
This commit is contained in:
parent
8640093af1
commit
723a59ac26
@ -216,6 +216,8 @@ template<typename MatrixType> void product(const MatrixType& m)
|
||||
// CwiseBinaryOp
|
||||
VERIFY_IS_APPROX(x = y + A*x, A*z);
|
||||
x = z;
|
||||
VERIFY_IS_APPROX(x = y - A*x, A*(-z));
|
||||
x = z;
|
||||
// CwiseUnaryOp
|
||||
VERIFY_IS_APPROX(x = Scalar(1.)*(A*x), A*z);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user