:orphan:
# MatMatSolveTranspose
Solves A^T X = B, given a factored matrix.
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatMatSolveTranspose(Mat A, Mat B, Mat X)
```
Neighbor-wise Collective
## Input Parameters
- ***A -*** the factored matrix
- ***B -*** the right-hand-side matrix (`MATDENSE` matrix)
## Output Parameter
- ***X -*** the result matrix (dense matrix)
## Note
The matrices `B` and `X` cannot be the same. I.e., one cannot
call `MatMatSolveTranspose`(A,X,X).
## See Also
[](ch_matrices), `Mat`, [Matrix Factorization](sec_matfactor), `MatGetFactor()`, `MatSolveTranspose()`, `MatMatSolve()`, `MatLUFactor()`, `MatCholeskyFactor()`
## Level
developer
## Location
src/mat/interface/matrix.c
## Implementations
MatMatSolveTranspose_MUMPS in src/mat/impls/aij/mpi/mumps/mumps.c
MatMatSolveTranspose_SPQR in src/mat/impls/aij/seq/spqr/aijspqr.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/interface/matrix.c)
[Index of all Mat routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)