diff --git a/Eigen/src/Core/Redux.h b/Eigen/src/Core/Redux.h index 09538a3bd..99fec2528 100644 --- a/Eigen/src/Core/Redux.h +++ b/Eigen/src/Core/Redux.h @@ -313,10 +313,9 @@ template inline typename ei_result_of::Scalar)>::type DenseBase::redux(const Func& func) const { - typename Derived::Nested nested(derived()); typedef typename ei_cleantype::type ThisNested; return ei_redux_impl - ::run(nested, func); + ::run(derived(), func); } /** \returns the minimum of all coefficients of *this