diff --git a/Eigen/src/Array/VectorwiseOp.h b/Eigen/src/Array/VectorwiseOp.h index 7193e6f68..0a46f49fc 100644 --- a/Eigen/src/Array/VectorwiseOp.h +++ b/Eigen/src/Array/VectorwiseOp.h @@ -436,7 +436,7 @@ template class VectorwiseOp template CwiseBinaryOp, ExpressionType, - NestByValue::Type> > + typename ExtendedType::Type> operator+(const MatrixBase& other) const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived); @@ -447,7 +447,7 @@ template class VectorwiseOp template CwiseBinaryOp, ExpressionType, - NestByValue::Type> > + typename ExtendedType::Type> operator-(const MatrixBase& other) const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived); @@ -478,10 +478,10 @@ template class VectorwiseOp Direction==Horizontal ? 1 : int(ei_traits::ColsAtCompileTime)> HNormalized_Factors; typedef CwiseBinaryOp::Scalar>, - NestByValue, - NestByValue, + HNormalized_Block, + Replicate > > + Direction==Horizontal ? HNormalized_SizeMinusOne : 1> > HNormalizedReturnType; const HNormalizedReturnType hnormalized() const;