PARTONS/NumA++  
Numerical Analysis C++ routines
Public Types | Static Public Member Functions | List of all members
NumA::LinAlgUtils Class Reference

Linear algebra routines such as linear solvers. More...

Public Types

enum  Method {
  ColQR = 0 , FullQR , QR , PartialLU ,
  FullLU
}
 

Static Public Member Functions

static VectorD solve (const MatrixD &A, const VectorD &Y, Method method=ColQR)
 Solves the linear system \( A X = Y \) and returns \( X \) . More...
 
static unsigned int rank (const MatrixD &A, Method method=ColQR)
 Computes the rank of the matrix with the given method. More...
 

Detailed Description

Linear algebra routines such as linear solvers.

Serves as wrapper for Eigen.

Member Enumeration Documentation

◆ Method

Enumerator
ColQR 
FullQR 
QR 
PartialLU 
FullLU 

Member Function Documentation

◆ rank()

unsigned int NumA::LinAlgUtils::rank ( const MatrixD A,
Method  method = ColQR 
)
static

Computes the rank of the matrix with the given method.

Parameters
AMatrixD
method
Returns
rank unsigned int

◆ solve()

VectorD NumA::LinAlgUtils::solve ( const MatrixD A,
const VectorD Y,
Method  method = ColQR 
)
static

Solves the linear system \( A X = Y \) and returns \( X \) .

Parameters
AMatrix to invert.
YRight hand side.
methodSolver method.
Returns
X Solution: VectorD

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