12 #ifndef EIGEN_COMPLEX_EIGEN_SOLVER_H 13 #define EIGEN_COMPLEX_EIGEN_SOLVER_H 61 typedef typename MatrixType::Scalar
Scalar;
125 template<
typename InputType>
127 :
m_eivec(matrix.rows(),matrix.cols()),
132 m_matX(matrix.rows(),matrix.cols())
212 template<
typename InputType>
258 template<
typename MatrixType>
259 template<
typename InputType>
275 if(computeEigenvectors)
286 template<
typename MatrixType>
291 matrixnorm = numext::maxi(matrixnorm,(std::numeric_limits<RealScalar>::min)());
295 m_matX = EigenvectorType::Zero(n, n);
296 for(
Index k=n-1 ; k>=0 ; k--)
300 for(
Index i=k-1 ; i>=0 ; i--)
319 for(
Index k=0 ; k<n ; k++)
326 template<
typename MatrixType>
330 for (
Index i=0; i<n; i++)
338 if(computeEigenvectors)
346 #endif // EIGEN_COMPLEX_EIGEN_SOLVER_H
EIGEN_DEVICE_FUNC void swap(DenseBase< OtherDerived > &other)
static void check_template_parameters()
ComplexSchur< MatrixType > m_schur
ComplexSchur & setMaxIterations(Index maxIters)
Sets the maximum number of iterations allowed.
ComplexEigenSolver(Index size)
Default Constructor with memory preallocation.
ComplexEigenSolver & compute(const EigenBase< InputType > &matrix, bool computeEigenvectors=true)
Computes eigendecomposition of given matrix.
Matrix< ComplexScalar, ColsAtCompileTime, 1, Options &(~RowMajor), MaxColsAtCompileTime, 1 > EigenvalueType
Type for vector of eigenvalues as returned by eigenvalues().
EigenvalueType m_eivalues
static constexpr size_t size(Tuple< Args... > &)
Provides access to the number of elements in a tuple as a compile-time constant expression.
Holds information about the various numeric (i.e. scalar) types allowed by Eigen. ...
MatrixType::Scalar Scalar
Scalar type for matrices of type MatrixType.
void doComputeEigenvectors(RealScalar matrixnorm)
ComplexSchur & compute(const EigenBase< InputType > &matrix, bool computeU=true)
Computes Schur decomposition of given matrix.
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Scalar & coeffRef(Index rowId, Index colId)
Matrix< ComplexScalar, RowsAtCompileTime, ColsAtCompileTime, Options, MaxRowsAtCompileTime, MaxColsAtCompileTime > EigenvectorType
Type for matrix of eigenvectors as returned by eigenvectors().
ComputationInfo info() const
Reports whether previous computation was successful.
NumTraits< Scalar >::Real RealScalar
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
ComplexEigenSolver(const EigenBase< InputType > &matrix, bool computeEigenvectors=true)
Constructor; computes eigendecomposition of given matrix.
#define EIGEN_STATIC_ASSERT_NON_INTEGER(TYPE)
Index getMaxIterations()
Returns the maximum number of iterations.
const EigenvectorType & eigenvectors() const
Returns the eigenvectors of given matrix.
const ComplexMatrixType & matrixT() const
Returns the triangular matrix in the Schur decomposition.
EIGEN_DEVICE_FUNC Index cols() const
TFSIMD_FORCE_INLINE const tfScalar & z() const
_MatrixType MatrixType
Synonym for the template parameter _MatrixType.
ComplexEigenSolver()
Default constructor.
Index getMaxIterations()
Returns the maximum number of iterations.
ComplexEigenSolver & setMaxIterations(Index maxIters)
Sets the maximum number of iterations allowed.
ComputationInfo info() const
Reports whether previous computation was successful.
EIGEN_DEVICE_FUNC Index rows() const
void sortEigenvalues(bool computeEigenvectors)
std::complex< RealScalar > ComplexScalar
Complex scalar type for MatrixType.
const EigenvalueType & eigenvalues() const
Returns the eigenvalues of given matrix.
Computes eigenvalues and eigenvectors of general complex matrices.
EIGEN_DEVICE_FUNC Derived & derived()
const ComplexMatrixType & matrixU() const
Returns the unitary matrix in the Schur decomposition.
void swap(mpfr::mpreal &x, mpfr::mpreal &y)
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE const Scalar & coeff(Index rowId, Index colId) const