From dd45c4805ced4ad8ead743875f42259e9b6a2795 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 20 May 2009 15:41:23 +0200 Subject: * add a writable generic coeff wise expression (CwiseUnaryView) * add writable .real() and .imag() functions --- Eigen/src/Core/CwiseUnaryOp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Eigen/src/Core/CwiseUnaryOp.h') diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index 7289952ed..7507f1ceb 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -165,14 +165,14 @@ MatrixBase::conjugate() const return ConjugateReturnType(derived()); } -/** \returns an expression of the real part of \c *this. +/** \returns a read-only expression of the real part of \c *this. * * \sa imag() */ template -EIGEN_STRONG_INLINE const typename MatrixBase::RealReturnType +EIGEN_STRONG_INLINE typename MatrixBase::RealReturnType MatrixBase::real() const { return derived(); } -/** \returns an expression of the imaginary part of \c *this. +/** \returns an read-only expression of the imaginary part of \c *this. * * \sa real() */ template -- cgit v1.2.3