mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
bug #1158: PartialReduxExpr is a vector expression, and it thus must expose the LinearAccessBit flag
This commit is contained in:
@@ -210,6 +210,9 @@ template<typename MatrixType> void vectorwiseop_matrix(const MatrixType& m)
|
||||
VERIFY_IS_APPROX(m1.cwiseAbs().colwise().maxCoeff(), m1.colwise().template lpNorm<Infinity>());
|
||||
VERIFY_IS_APPROX(m1.cwiseAbs().rowwise().maxCoeff(), m1.rowwise().template lpNorm<Infinity>());
|
||||
|
||||
// regression for bug 1158
|
||||
VERIFY_IS_APPROX(m1.cwiseAbs().colwise().sum().x(), m1.col(0).cwiseAbs().sum());
|
||||
|
||||
// test normalized
|
||||
m2 = m1.colwise().normalized();
|
||||
VERIFY_IS_APPROX(m2.col(c), m1.col(c).normalized());
|
||||
|
||||
Reference in New Issue
Block a user