diff options
author | 2008-06-01 17:20:18 +0000 | |
---|---|---|
committer | 2008-06-01 17:20:18 +0000 | |
commit | 06752b2b775a621793c4833c82a1b5e019011536 (patch) | |
tree | 78ba51871bc862e562875a978929a9f0eb6b4b9b /Eigen/src/Core/CwiseUnaryOp.h | |
parent | dc5fd8dfffad9c19dc6699d5ab1f435f1c10b6e8 (diff) |
* added a Tridiagonalization class for selfadjoint matrices
* added MatrixBase::real()
* added the ability to extract a selfadjoint matrix from the
lower or upper part of a matrix, e.g.:
m.extract<Upper|SelfAdjoint>()
will ignore the strict lower part and return a selfadjoint.
This is compatible with ZeroDiag and UnitDiag.
Diffstat (limited to 'Eigen/src/Core/CwiseUnaryOp.h')
-rw-r--r-- | Eigen/src/Core/CwiseUnaryOp.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Eigen/src/Core/CwiseUnaryOp.h b/Eigen/src/Core/CwiseUnaryOp.h index 893c8abf6..8715f931e 100644 --- a/Eigen/src/Core/CwiseUnaryOp.h +++ b/Eigen/src/Core/CwiseUnaryOp.h @@ -139,7 +139,7 @@ MatrixBase<Derived>::cwiseAbs2() const return derived(); } -/** \returns an expression of the complex conjugate of *this. +/** \returns an expression of the complex conjugate of \c *this. * * \sa adjoint() */ template<typename Derived> @@ -149,6 +149,16 @@ MatrixBase<Derived>::conjugate() const return ConjugateReturnType(derived()); } +/** \returns an expression of the real part of \c *this. + * + * \sa adjoint() */ +template<typename Derived> +inline const typename MatrixBase<Derived>::RealReturnType +MatrixBase<Derived>::real() const +{ + return derived(); +} + /** \returns an expression of *this with the \a Scalar type casted to * \a NewScalar. * |