From 139529e97b76c250c13474a1ebc9f6dbf27b6115 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 14 Nov 2008 09:55:25 +0000 Subject: * add .imag() function * fix a very old bug in EigenSolver that I had completely forgotten (thanks to Timothy to refresh my mind) * fix doc of Matrix::Map --- Eigen/src/Core/CwiseUnaryOp.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Eigen/src/Core/CwiseUnaryOp.h') diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index a50a9c30d..4ceb6d98a 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -174,13 +174,17 @@ MatrixBase::conjugate() const /** \returns an expression of the real part of \c *this. * - * \sa adjoint() */ + * \sa imag() */ template inline const typename MatrixBase::RealReturnType -MatrixBase::real() const -{ - return derived(); -} +MatrixBase::real() const { return derived(); } + +/** \returns an expression of the imaginary part of \c *this. + * + * \sa real() */ +template +inline const typename MatrixBase::ImagReturnType +MatrixBase::imag() const { return derived(); } /** \returns an expression of *this with the \a Scalar type casted to * \a NewScalar. -- cgit v1.2.3