Public Member Functions | |
SuperLUMatrix (const SuperLUGrid< Real > &g, const SuperLUOptions &opt=SuperLUOptions()) | |
SuperLUMatrix (const SuperLUMatrix &g) | |
SuperLUMatrix & | operator= (const SuperLUMatrix &g) |
void | Setup (const SuperLUGrid< Real > &g, const SuperLUOptions &opt=SuperLUOptions()) |
Int | m () const |
Int | n () const |
void | DistSparseMatrixToSuperMatrixNRloc (DistSparseMatrix< Real > &sparseA, const SuperLUOptions &opt) |
Convert a distributed sparse matrix in compressed sparse column format into the SuperLU compressed row format. More... | |
void | DestroyAOnly () |
Releases the data in A but keeps other data, such as LUstruct. More... | |
void | SymbolicFactorize () |
Factorizes the superlu matrix symbolically. More... | |
void | Distribute () |
Distribute redistrbutes the SuperMatrix in parallel so that it is ready for the numerical factorization. More... | |
void | NumericalFactorize () |
Performs LU factorization numerically. More... | |
void | ConvertNRlocToNC (SuperLUMatrix< Real > &AGlobal) |
ConvertNRlocToNC converts a distributed compressed sparse row matrix to a global compressed sparse column matrix. More... | |
void | MultiplyGlobalMultiVector (NumMat< Real > &xGlobal, NumMat< Real > &bGlobal) |
MultiplyGlobalMultiVector computes b = A * x. More... | |
void | DistributeGlobalMultiVector (NumMat< Real > &xGlobal, NumMat< Real > &xLocal) |
DistributeGlobalMultiVector distributes a global multivector into a local multivector according to the compressed row format of A. More... | |
void | GatherDistributedMultiVector (NumMat< Real > &xGlobal, NumMat< Real > &xLocal) |
void | SolveDistMultiVector (NumMat< Real > &bLocal, DblNumVec &berr) |
Solve A x = b with b overwritten by x for distributed multivector. More... | |
void | CheckErrorDistMultiVector (NumMat< Real > &xLocal, NumMat< Real > &xTrueLocal) |
Prints out the error by direct comparison with the true solution in distributed format. More... | |
void | LUstructToPMatrix (PMatrix< Real > &PMloc) |
LUstructToPMatrix converts the data in LUstruct to PMatrix. More... | |
void | SymbolicToSuperNode (SuperNodeType &super) |
SymbolicToSuperNode converts the symbolic information to SuperNode structure in SelInv. More... | |
|
inline |
Prints out the error by direct comparison with the true solution in distributed format.
[in] | xLocal | The computed solution. |
[in] | xTrueLocal | The true solution. |
|
inline |
ConvertNRlocToNC converts a distributed compressed sparse row matrix to a global compressed sparse column matrix.
[out] | AGlobal |
|
inline |
Releases the data in A but keeps other data, such as LUstruct.
This allows one to perform factorization of matrices of the same pattern, such as the option
fact = SamePattern_SameRowPerm
in SuperLU_DIST.
|
inline |
Distribute redistrbutes the SuperMatrix in parallel so that it is ready for the numerical factorization.
|
inline |
DistributeGlobalMultiVector distributes a global multivector into a local multivector according to the compressed row format of A.
[in] | xGlobal | |
[out] | xLocal |
|
inline |
Convert a distributed sparse matrix in compressed sparse column format into the SuperLU compressed row format.
The output is saved in the current SuperLUMatrix.
[in] | sparseA | Matrix A saved in distributed compressed sparse column format. |
|
inline |
LUstructToPMatrix converts the data in LUstruct to PMatrix.
[out] PMloc
|
inline |
MultiplyGlobalMultiVector computes b = A * x.
Both xGlobal and bGlobal are saved globally.
[in] | xGlobal | |
[out] | bGlobal |
|
inline |
Performs LU factorization numerically.
The SuperLUMatrix should have been permuted and distributed.
|
inline |
Solve A x = b with b overwritten by x for distributed multivector.
[in,out] | bLocal | Right hand side savd in the distributed format. |
[out] | berr | The componentwise relative backward error of each solution vector. |
|
inline |
Factorizes the superlu matrix symbolically.
Symbolic factorization contains three steps.
This routine is controlled via SuperLUOptions.
|
inline |
SymbolicToSuperNode converts the symbolic information to SuperNode structure in SelInv.
[out] | super |