:orphan:
# KSPSolveTranspose
Solves a linear system with the transposed matrix.
## Synopsis
```
#include "petscksp.h"
#include "petscmat.h"
PetscErrorCode KSPSolveTranspose(KSP ksp, Vec b, Vec x)
```
Collective
## Input Parameters
- ***ksp -*** iterative context obtained from `KSPCreate()`
- ***b -*** right hand side vector
- ***x -*** solution vector
## Notes
For complex numbers this solve the non-Hermitian transpose system.
## Developer Notes
We need to implement a `KSPSolveHermitianTranspose()`
## See Also
[](ch_ksp), `KSPCreate()`, `KSPSetUp()`, `KSPDestroy()`, `KSPSetTolerances()`, `KSPConvergedDefault()`,
`KSPSolve()`, `KSP`
## Level
developer
## Location
src/ksp/ksp/interface/itfunc.c
## Examples
src/dm/impls/swarm/tutorials/ex1.c
src/dm/impls/swarm/tutorials/ex1f90.F90
src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex53.c
src/ksp/ksp/tutorials/ex67.c
src/ksp/ksp/tutorials/ex72.c
src/tao/pde_constrained/tutorials/hyperbolic.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/interface/itfunc.c)
[Index of all KSP routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)