mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable direct access for NestByValue.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
b59f18b4f7
commit
03c9b4738c
@@ -33,5 +33,7 @@ EIGEN_DECLARE_TEST(nestbyvalue)
|
||||
MatrixXd b = x;
|
||||
VERIFY_IS_EQUAL(nb_temporaries,6+1);
|
||||
VERIFY_IS_APPROX(b, a.rowwise().reverse().eval() + (a+a).eval());
|
||||
// Block expressions work with dense NestByValue.
|
||||
VERIFY_IS_APPROX(b, a.nestByValue().rowwise().reverse().eval() + (a.nestByValue()+a.nestByValue()).eval());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user