consteig
Compile-time eigenvalue and eigenvector computation for C++17
Loading...
Searching...
No Matches
Public Member Functions | List of all members
consteig::EigenSolver< T, S > Class Template Reference

Convenience class that computes both eigenvalues and eigenvectors. More...

#include <eigen.hpp>

Public Member Functions

constexpr EigenSolver (const Matrix< T, S, S > &mat)
 Compute eigenvalues and eigenvectors of mat.
 
constexpr const Matrix< Complex< T >, S, 1 > & eigenvalues () const
 Return the S×1 eigenvalue column vector.
 
constexpr const Matrix< Complex< T >, S, S > & eigenvectors () const
 Return the S×S eigenvector matrix (column eig_col corresponds to eigenvalue eig_col).
 

Detailed Description

template<typename T, Size S>
class consteig::EigenSolver< T, S >

Convenience class that computes both eigenvalues and eigenvectors.

Constructs both at initialization time. Prefer the free functions eigenvalues and eigenvectors when you only need one.

Template Parameters
TFloating-point scalar type.
SMatrix dimension.
static constexpr auto eigs = solver.eigenvalues();
static constexpr auto vecs = solver.eigenvectors();
Convenience class that computes both eigenvalues and eigenvectors.
Definition eigen.hpp:704
constexpr T epsilon()
Machine epsilon for type T.
Definition utilities.hpp:82

The documentation for this class was generated from the following file: