11 #ifndef EIGEN_MATRIXBASEEIGENVALUES_H 12 #define EIGEN_MATRIXBASEEIGENVALUES_H 18 template<
typename Derived,
bool IsComplex>
25 typedef typename Derived::PlainObject PlainObject;
26 PlainObject m_eval(m);
31 template<
typename Derived>
37 typedef typename Derived::PlainObject PlainObject;
38 PlainObject m_eval(m);
65 template<
typename Derived>
87 template<
typename MatrixType,
unsigned int UpLo>
92 PlainObject thisAsMatrix(*
this);
120 template<
typename Derived>
125 typename Derived::PlainObject m_eval(derived());
128 return sqrt((m_eval*m_eval.adjoint())
130 .template selfadjointView<Lower>()
151 template<
typename MatrixType,
unsigned int UpLo>
155 return eigenvalues().cwiseAbs().maxCoeff();
EIGEN_DEVICE_FUNC EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
internal::traits< Derived >::Scalar Scalar
RealScalar operatorNorm() const
Computes the L2 operator norm.
Computes eigenvalues and eigenvectors of selfadjoint matrices.
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
MatrixType::PlainObject PlainObject
NumTraits< Scalar >::Real RealScalar
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
NumTraits< Scalar >::Real RealScalar
EIGEN_DEVICE_FUNC RealScalar operatorNorm() const
Computes the L2 operator norm.
Computes eigenvalues and eigenvectors of general matrices.
The matrix class, also used for vectors and row-vectors.
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Computes eigenvalues and eigenvectors of general complex matrices.
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Base class for all dense matrices, vectors, and expressions.