aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Redux.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-01-28 21:09:08 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-01-28 21:09:08 +0000
commit42b237b83a16739c586f139db2e6da928b717b84 (patch)
tree95c09bdac60f28676aca75dd985f70e60115a6a2 /Eigen/src/Core/Redux.h
parentcc6159743d6d7deb8982b7795379d1b8e9b351f9 (diff)
* make sum and redux honor EvalBeforeNestingBit too
* fix MSVC issues (hopefully)
Diffstat (limited to 'Eigen/src/Core/Redux.h')
-rw-r--r--Eigen/src/Core/Redux.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/Redux.h b/Eigen/src/Core/Redux.h
index 734ef1929..5b5907073 100644
--- a/Eigen/src/Core/Redux.h
+++ b/Eigen/src/Core/Redux.h
@@ -92,7 +92,8 @@ MatrixBase<Derived>::redux(const BinaryOp& func) const
const bool unroll = SizeAtCompileTime * CoeffReadCost
+ (SizeAtCompileTime-1) * ei_functor_traits<BinaryOp>::Cost
<= EIGEN_UNROLLING_LIMIT;
- return ei_redux_impl<BinaryOp, Derived, 0, unroll ? int(SizeAtCompileTime) : Dynamic>
+ typedef typename ei_cleantype<typename Derived::Nested>::type ThisNested;
+ return ei_redux_impl<BinaryOp, ThisNested, 0, unroll ? int(SizeAtCompileTime) : Dynamic>
::run(derived(), func);
}