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>
86 template<
typename MatrixType,
unsigned int UpLo>
118 template<
typename Derived>
123 typename Derived::PlainObject m_eval(derived());
126 return sqrt((m_eval*m_eval.adjoint())
128 .template selfadjointView<Lower>()
149 template<
typename MatrixType,
unsigned int UpLo>
153 return eigenvalues().cwiseAbs().maxCoeff();
EIGEN_DEVICE_FUNC EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
RealScalar operatorNorm() const
Computes the L2 operator norm.
Computes eigenvalues and eigenvectors of selfadjoint matrices.
EIGEN_DEVICE_FUNC const SqrtReturnType sqrt() const
Namespace containing all symbols from the Eigen library.
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.
internal::nested_eval< T, 1 >::type eval(const T &xpr)
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.