#include "petscksp.h" #include "petscmat.h" PetscErrorCode KSPBuildResidual(KSP ksp,Vec t,Vec v,Vec *V)Collective on ksp
ksp | - iterative context obtained from KSPCreate() |
v | - optional location to stash residual. If v is not provided, then a location is generated. | |
t | - work vector. If not provided then one is generated. | |
V | - the residual |