ARPACK-Armadillo
|
#include <GeneralLU.h>
Public Member Functions | |
GeneralLU () | |
GeneralLU (const Matrix &mat) | |
void | compute (const Matrix &mat) |
void | solve (Vector &vec_in, Vector &vec_out) |
Perform the LU decomposition of a square matrix.
Scalar | The element type of the matrix. Currently supported types are float and double . |
This class is a wrapper of the Lapack functions _getrf
and _getrs
.
Definition at line 30 of file GeneralLU.h.
Default constructor to create an object that stores the LU decomposition of a square matrix. Factorization can be performed later by calling the compute() method.
Definition at line 48 of file GeneralLU.h.
Constructor to create an object that performs and stores the LU decomposition of a square matrix mat
.
mat | Matrix type can be arma::mat or arma::fmat , depending on the template parameter Scalar defined. |
Definition at line 59 of file GeneralLU.h.
|
inline |
Conduct the LU factorization of a square matrix.
mat | Matrix type can be arma::mat or arma::fmat , depending on the template parameter Scalar defined. |
Definition at line 72 of file GeneralLU.h.
|
inline |
Use the computed LU factorization to solve linear equation \(Ax=b\), where \(A\) is the matrix factorized.
vec_in | The vector \(b\). |
vec_out | The vector \(x\) to be solved, which will be overwritten by the calculated solution. |
Vector type can be arma::vec
or arma::fvec
, depending on the template parameter Scalar
defined.
Definition at line 104 of file GeneralLU.h.