mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-19 08:09:36 +08:00
*add test to prevent future regression
This commit is contained in:
parent
fa65b09661
commit
4b04a9bcfa
@ -115,6 +115,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());
|
||||
|
||||
// test (outer_product) * vector with and without temporary
|
||||
ColVectorType vc3 = ColVectorType::Random(cols), vc4 = ColVectorType::Random(cols);
|
||||
vcres = (vc2 * vc3.transpose()) * vc4; // without temporary
|
||||
VERIFY_IS_APPROX(vcres, (vc2 * vc3.transpose()).eval() * vc4);
|
||||
}
|
||||
|
||||
void test_product_extra()
|
||||
|
Loading…
x
Reference in New Issue
Block a user