From c3a4f6b5c58117ec24fca376fd3cb91302aef0c2 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 24 Jan 2011 08:27:06 -0500 Subject: const-qualify template parameters representing const arguments to expressions. needed to fix docs compile issue. --- Eigen/src/plugins/ArrayCwiseUnaryOps.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'Eigen/src/plugins/ArrayCwiseUnaryOps.h') diff --git a/Eigen/src/plugins/ArrayCwiseUnaryOps.h b/Eigen/src/plugins/ArrayCwiseUnaryOps.h index 78479b985..3c6a59a87 100644 --- a/Eigen/src/plugins/ArrayCwiseUnaryOps.h +++ b/Eigen/src/plugins/ArrayCwiseUnaryOps.h @@ -7,7 +7,7 @@ * * \sa abs2() */ -EIGEN_STRONG_INLINE const CwiseUnaryOp, Derived> +EIGEN_STRONG_INLINE const CwiseUnaryOp, const Derived> abs() const { return derived(); @@ -20,7 +20,7 @@ abs() const * * \sa abs(), square() */ -EIGEN_STRONG_INLINE const CwiseUnaryOp, Derived> +EIGEN_STRONG_INLINE const CwiseUnaryOp, const Derived> abs2() const { return derived(); @@ -33,7 +33,7 @@ abs2() const * * \sa pow(), log(), sin(), cos() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> exp() const { return derived(); @@ -46,7 +46,7 @@ exp() const * * \sa exp() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> log() const { return derived(); @@ -59,7 +59,7 @@ log() const * * \sa pow(), square() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> sqrt() const { return derived(); @@ -72,7 +72,7 @@ sqrt() const * * \sa sin(), exp() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> cos() const { return derived(); @@ -86,7 +86,7 @@ cos() const * * \sa cos(), exp() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> sin() const { return derived(); @@ -100,10 +100,10 @@ sin() const * * \sa exp(), log() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> pow(const Scalar& exponent) const { - return CwiseUnaryOp,Derived> + return CwiseUnaryOp, const Derived> (derived(), internal::scalar_pow_op(exponent)); } @@ -115,7 +115,7 @@ pow(const Scalar& exponent) const * * \sa operator/(), operator*() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> inverse() const { return derived(); @@ -128,7 +128,7 @@ inverse() const * * \sa operator/(), operator*(), abs2() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> square() const { return derived(); @@ -141,16 +141,16 @@ square() const * * \sa square(), pow() */ -inline const CwiseUnaryOp, Derived> +inline const CwiseUnaryOp, const Derived> cube() const { return derived(); } #define EIGEN_MAKE_SCALAR_CWISE_UNARY_OP(METHOD_NAME,FUNCTOR) \ - inline const CwiseUnaryOp >,Derived> \ + inline const CwiseUnaryOp >, const Derived> \ METHOD_NAME(const Scalar& s) const { \ - return CwiseUnaryOp >,Derived> \ + return CwiseUnaryOp >, const Derived> \ (derived(), std::bind2nd(FUNCTOR(), s)); \ } -- cgit v1.2.3