diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-24 08:27:06 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2011-01-24 08:27:06 -0500 |
commit | c3a4f6b5c58117ec24fca376fd3cb91302aef0c2 (patch) | |
tree | 6f053a17614e82b701f356b7b6c1a13eadeaccae /Eigen/src/Core | |
parent | 5331fa3033fb615f6123d552ad6fa4a782b7d72f (diff) |
const-qualify template parameters representing const arguments to expressions.
needed to fix docs compile issue.
Diffstat (limited to 'Eigen/src/Core')
-rw-r--r-- | Eigen/src/Core/DiagonalMatrix.h | 2 | ||||
-rw-r--r-- | Eigen/src/Core/TriangularMatrix.h | 4 | ||||
-rw-r--r-- | Eigen/src/Core/VectorwiseOp.h | 8 | ||||
-rw-r--r-- | Eigen/src/Core/util/Macros.h | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/Eigen/src/Core/DiagonalMatrix.h b/Eigen/src/Core/DiagonalMatrix.h index 7118db4b8..405839ae3 100644 --- a/Eigen/src/Core/DiagonalMatrix.h +++ b/Eigen/src/Core/DiagonalMatrix.h @@ -71,7 +71,7 @@ class DiagonalBase : public EigenBase<Derived> const DiagonalProduct<MatrixDerived, Derived, OnTheLeft> operator*(const MatrixBase<MatrixDerived> &matrix) const; - inline const DiagonalWrapper<CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, DiagonalVectorType> > + inline const DiagonalWrapper<CwiseUnaryOp<internal::scalar_inverse_op<Scalar>, const DiagonalVectorType> > inverse() const { return diagonal().cwiseInverse(); diff --git a/Eigen/src/Core/TriangularMatrix.h b/Eigen/src/Core/TriangularMatrix.h index 3b5f5986b..ce5b53631 100644 --- a/Eigen/src/Core/TriangularMatrix.h +++ b/Eigen/src/Core/TriangularMatrix.h @@ -755,7 +755,7 @@ MatrixBase<Derived>::triangularView() const /** \returns true if *this is approximately equal to an upper triangular matrix, * within the precision given by \a prec. * - * \sa isLowerTriangular(), extract(), part(), marked() + * \sa isLowerTriangular() */ template<typename Derived> bool MatrixBase<Derived>::isUpperTriangular(RealScalar prec) const @@ -780,7 +780,7 @@ bool MatrixBase<Derived>::isUpperTriangular(RealScalar prec) const /** \returns true if *this is approximately equal to a lower triangular matrix, * within the precision given by \a prec. * - * \sa isUpperTriangular(), extract(), part(), marked() + * \sa isUpperTriangular() */ template<typename Derived> bool MatrixBase<Derived>::isLowerTriangular(RealScalar prec) const 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); diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 1de2c6f26..b1bdea44e 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -342,10 +342,10 @@ #define EIGEN_MAKE_CWISE_BINARY_OP(METHOD,FUNCTOR) \ template<typename OtherDerived> \ - EIGEN_STRONG_INLINE const CwiseBinaryOp<FUNCTOR<Scalar>, Derived, OtherDerived> \ + EIGEN_STRONG_INLINE const CwiseBinaryOp<FUNCTOR<Scalar>, const Derived, const OtherDerived> \ METHOD(const EIGEN_CURRENT_STORAGE_BASE_CLASS<OtherDerived> &other) const \ { \ - return CwiseBinaryOp<FUNCTOR<Scalar>, Derived, OtherDerived>(derived(), other.derived()); \ + return CwiseBinaryOp<FUNCTOR<Scalar>, const Derived, const OtherDerived>(derived(), other.derived()); \ } // the expression type of a cwise product @@ -355,8 +355,8 @@ typename internal::traits<LHS>::Scalar, \ typename internal::traits<RHS>::Scalar \ >, \ - LHS, \ - RHS \ + const LHS, \ + const RHS \ > #endif // EIGEN_MACROS_H |