MatSolve

Solves A x = b, given a factored matrix.

Synopsis

#include "mat.h" 
int MatSolve(Mat mat,Vec b,Vec x)
Collective on Mat and Vec

Input Parameters

mat - the factored matrix
b - the right-hand-side vector

Output Parameter

x -the result vector

Notes

The vectors b and x cannot be the same. I.e., one cannot call MatSolve(A,x,x).

Notes

Most users should employ the simplified SLES interface for linear solvers instead of working directly with matrix algebra routines such as this. See, e.g., SLESCreate().

Keywords

matrix, linear system, solve, LU, Cholesky, triangular solve

See Also

MatSolveAdd(), MatSolveTranspose(), MatSolveTransposeAdd()

Level:developer
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents