Solves A^T X = B, given a factored matrix.


#include "petscmat.h" 
PetscErrorCode MatMatSolveTranspose(Mat A,Mat B,Mat X)
Neighbor-wise Collective on Mat

Input Parameters

A - the factored matrix
B - the right-hand-side matrix (dense matrix)

Output Parameter

X - the result matrix (dense matrix)


The matrices B and X cannot be the same. I.e., one cannot call MatMatSolveTranspose(A,X,X).


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.

When using SuperLU_Dist or MUMPS as a parallel solver, PETSc will use their functionality to solve multiple right hand sides simultaneously.

Level: developer

See Also

MatMatSolve(), MatLUFactor(), MatCholeskyFactor()