MatMatSolve
Solves A X = B, given a factored matrix.
Synopsis
#include "petscmat.h"
PetscErrorCode MatMatSolve(Mat A,Mat B,Mat X)
Neighbor-wise Collective on Mat
Input Parameters
| mat | - the factored matrix
|
| B | - the right-hand-side matrix (dense matrix)
|
Output Parameter
X -the result matrix (dense matrix)
Notes
The matrices b and x cannot be the same. I.e., one cannot
call MatMatSolve(A,x,x).
Notes
Most users should usually employ the simplified KSP interface for linear solvers
instead of working directly with matrix algebra routines such as this.
See, e.g., KSPCreate(). However KSP can only solve for one vector (column of X)
at a time.
See Also
MatMatSolveAdd(), MatMatSolveTranspose(), MatMatSolveTransposeAdd(), MatLUFactor(), MatCholeskyFactor()
Level:developer
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages