aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CwiseUnaryOp.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-05-20 15:41:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-05-20 15:41:23 +0200
commitdd45c4805ced4ad8ead743875f42259e9b6a2795 (patch)
tree22ba6d80c2f8d60721e38adf579ffb6bba23d0f5 /Eigen/src/Core/CwiseUnaryOp.h
parent6ecd02d7ec85f07e02559cb311d4dd07e844a72d (diff)
* add a writable generic coeff wise expression (CwiseUnaryView)
* add writable .real() and .imag() functions
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r--Eigen/src/Core/CwiseUnaryOp.h6
1 files changed, 3 insertions, 3 deletions
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<Derived>::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<typename Derived>
-EIGEN_STRONG_INLINE const typename MatrixBase<Derived>::RealReturnType
+EIGEN_STRONG_INLINE typename MatrixBase<Derived>::RealReturnType
MatrixBase<Derived>::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<typename Derived>