diff options
author | 2011-01-24 08:27:06 -0500 | |
---|---|---|
committer | 2011-01-24 08:27:06 -0500 | |
commit | c3a4f6b5c58117ec24fca376fd3cb91302aef0c2 (patch) | |
tree | 6f053a17614e82b701f356b7b6c1a13eadeaccae /Eigen/src/Core/VectorwiseOp.h | |
parent | 5331fa3033fb615f6123d552ad6fa4a782b7d72f (diff) |
const-qualify template parameters representing const arguments to expressions.
needed to fix docs compile issue.
Diffstat (limited to 'Eigen/src/Core/VectorwiseOp.h')
-rw-r--r-- | Eigen/src/Core/VectorwiseOp.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/VectorwiseOp.h b/Eigen/src/Core/VectorwiseOp.h index 8e1a337ee..60a405129 100644 --- a/Eigen/src/Core/VectorwiseOp.h +++ b/Eigen/src/Core/VectorwiseOp.h @@ -447,8 +447,8 @@ template<typename ExpressionType, int Direction> class VectorwiseOp /** Returns the expression of the sum of the vector \a other to each subvector of \c *this */ template<typename OtherDerived> EIGEN_STRONG_INLINE CwiseBinaryOp<internal::scalar_sum_op<Scalar>, - ExpressionTypeNestedCleaned, - typename ExtendedType<OtherDerived>::Type> + const ExpressionTypeNestedCleaned, + const typename ExtendedType<OtherDerived>::Type> operator+(const DenseBase<OtherDerived>& other) const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived); @@ -458,8 +458,8 @@ template<typename ExpressionType, int Direction> class VectorwiseOp /** Returns the expression of the difference between each subvector of \c *this and the vector \a other */ template<typename OtherDerived> CwiseBinaryOp<internal::scalar_difference_op<Scalar>, - ExpressionTypeNestedCleaned, - typename ExtendedType<OtherDerived>::Type> + const ExpressionTypeNestedCleaned, + const typename ExtendedType<OtherDerived>::Type> operator-(const DenseBase<OtherDerived>& other) const { EIGEN_STATIC_ASSERT_VECTOR_ONLY(OtherDerived); |