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 const SqrtReturnType sqrt() const
Definition: ArrayCwiseUnaryOps.h:187
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:976
Computes eigenvalues and eigenvectors of general complex matrices.
Definition: ComplexEigenSolver.h:46
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: ComplexEigenSolver.h:182
Computes eigenvalues and eigenvectors of general matrices.
Definition: EigenSolver.h:65
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: EigenSolver.h:244
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:50
RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:120
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:67
NumTraits< Scalar >::Real RealScalar
Definition: MatrixBase.h:58
Matrix< std::complex< RealScalar >, internal::traits< Derived >::ColsAtCompileTime, 1, ColMajor > EigenvaluesReturnType
Definition: MatrixBase.h:115
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:180
Computes eigenvalues and eigenvectors of selfadjoint matrices.
Definition: SelfAdjointEigenSolver.h:77
EIGEN_DEVICE_FUNC const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: SelfAdjointEigenSolver.h:300
EIGEN_DEVICE_FUNC RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:151
EIGEN_DEVICE_FUNC EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:88
MatrixType::PlainObject PlainObject
Definition: SelfAdjointView.h:71
NumTraits< Scalar >::Real RealScalar
Definition: SelfAdjointView.h:256
Namespace containing all symbols from the Eigen library.
Definition: LDLT.h:16
Definition: document.h:416
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Definition: MatrixBaseEigenvalues.h:35
Definition: MatrixBaseEigenvalues.h:20
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Definition: MatrixBaseEigenvalues.h:23