G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsSpectraSolver< MatrixType > Class Template Reference

Detailed Description

template<class MatrixType>
class gismo::gsSpectraSolver< MatrixType >

Eigenvalue solver for general real matrices.

Typical usage:

gsSparseMatrix<> A;
const index_t nEv = 2;
gsSpectraSymSolver<gsSparseMatrix<> > slv(A, nEv, 2*nEv);
slv.compute();
if ( slv.info() == 0 )
{
gsInfo << slv.eigenvalues() <<"\n";
gsInfo << slv.eigenvectors() <<"\n";
}

Inherits SpectraMatProd< MatrixType >, and GenEigsSolver< SpectraMatProd< MatrixType > >.