diff options
author | Gael Guennebaud <g.gael@free.fr> | 2016-01-28 13:16:30 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2016-01-28 13:16:30 +0100 |
commit | df15fbc4520402a00b053bd02c782b77a5b72f61 (patch) | |
tree | a4f007a83ab11d95abb178b1a3d6af63a2be6cf6 /test/vectorwiseop.cpp | |
parent | 9bcadb7fd1d8852dbc74fe054878b0a12f4aed4e (diff) |
bug #1158: PartialReduxExpr is a vector expression, and it thus must expose the LinearAccessBit flag
Diffstat (limited to 'test/vectorwiseop.cpp')
-rw-r--r-- | test/vectorwiseop.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/vectorwiseop.cpp b/test/vectorwiseop.cpp index 87476f95b..3cc198772 100644 --- a/test/vectorwiseop.cpp +++ b/test/vectorwiseop.cpp @@ -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()); |