#include "petscksp.h" PetscErrorCode KSPInitialResidual(KSP ksp,Vec vsoln,Vec vt1,Vec vt2,Vec vres,Vec vb)Collective on KSP Many br
| vsoln | - solution to use in computing residual Many br | |
| vt1, vt2 | - temporary work vectors Many br | |
| vb | - right-hand-side vector Many br |
A x = b
will be used with a preconditioner, C, such that the actual problem is either Many br
AC u = b (right preconditioning) or
CA x = Cb (left preconditioning).
This means that the calculated residual will be scaled and/or preconditioned; Many brthe true residual Many br
b-Ax
is returned in the vt2 temporary. Many br
Many br
Level:developer
Location:src/ksp/ksp/interface/itres.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages