KSPComputeOperator#
Computes the explicit preconditioned operator, including diagonal scaling and null space removal if applicable.
Synopsis#
#include "petscksp.h" 
PetscErrorCode KSPComputeOperator(KSP ksp, MatType mattype, Mat *mat)
Collective
Input Parameters#
- ksp - the Krylov subspace context 
- mattype - the matrix type to be used 
Output Parameter#
- mat - the explicit preconditioned operator 
Notes#
This computation is done by applying the operators to columns of the identity matrix.
Currently, this routine uses a dense matrix format for the output operator if mattype is NULL.
This routine is costly in general, and is recommended for use only with relatively small systems.
See Also#
KSP: Linear System Solvers, KSP, KSPSetOperators(), KSPComputeEigenvaluesExplicitly(), PCComputeOperator(), KSPSetDiagonalScale(), KSPSetNullSpace(), MatType
Level#
advanced
Location#
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages