11 #ifndef EIGEN_MATRIXBASEEIGENVALUES_H
12 #define EIGEN_MATRIXBASEEIGENVALUES_H
21 template <
typename Derived,
bool IsComplex>
25 typedef typename Derived::PlainObject PlainObject;
26 PlainObject m_eval(
m);
31 template <
typename Derived>
34 typedef typename Derived::PlainObject PlainObject;
35 PlainObject m_eval(
m);
62 template <
typename Derived>
81 template <
typename MatrixType,
unsigned int UpLo>
110 template <
typename Derived>
113 typename Derived::PlainObject m_eval(derived());
116 return sqrt((m_eval * m_eval.adjoint()).eval().template selfadjointView<Lower>().eigenvalues().maxCoeff());
134 template <
typename MatrixType,
unsigned int UpLo>
137 return eigenvalues().cwiseAbs().maxCoeff();
AnnoyingScalar sqrt(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:134
#define EIGEN_DEVICE_FUNC
Definition: Macros.h:892
Computes eigenvalues and eigenvectors of general complex matrices.
Definition: ComplexEigenSolver.h:49
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: ComplexEigenSolver.h:177
Computes eigenvalues and eigenvectors of general matrices.
Definition: EigenSolver.h:68
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: EigenSolver.h:246
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:52
RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:111
EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:63
NumTraits< Scalar >::Real RealScalar
Definition: MatrixBase.h:60
The matrix class, also used for vectors and row-vectors.
Definition: Eigen/Eigen/src/Core/Matrix.h:186
Computes eigenvalues and eigenvectors of selfadjoint matrices.
Definition: SelfAdjointEigenSolver.h:82
EIGEN_DEVICE_FUNC const RealVectorType & eigenvalues() const
Returns the eigenvalues of given matrix.
Definition: SelfAdjointEigenSolver.h:300
MatrixType::PlainObject PlainObject
Definition: SelfAdjointView.h:72
EIGEN_DEVICE_FUNC RealScalar operatorNorm() const
Computes the L2 operator norm.
Definition: MatrixBaseEigenvalues.h:136
EIGEN_DEVICE_FUNC EigenvaluesReturnType eigenvalues() const
Computes the eigenvalues of a matrix.
Definition: MatrixBaseEigenvalues.h:83
NumTraits< Scalar >::Real RealScalar
Definition: SelfAdjointView.h:228
int * m
Definition: level2_cplx_impl.h:294
Namespace containing all symbols from the Eigen library.
Definition: bench_norm.cpp:70
auto run(Kernel kernel, Args &&... args) -> decltype(kernel(args...))
Definition: gpu_test_helper.h:414
Definition: Eigen_Colamd.h:49
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Definition: MatrixBaseEigenvalues.h:33
Definition: MatrixBaseEigenvalues.h:22
static MatrixBase< Derived >::EigenvaluesReturnType const run(const MatrixBase< Derived > &m)
Definition: MatrixBaseEigenvalues.h:24