#include "slepcds.h" PetscErrorCode DSTranslateHarmonic(DS ds,PetscScalar tau,PetscReal beta,PetscBool recover,PetscScalar *g,PetscReal *gamma)Logically Collective
ds | - the direct solver context | |
tau | - the translation amount | |
beta | - last component of vector b | |
recover | - boolean flag to indicate whether to recover or not |
g | - the computed vector (optional) | |
gamma | - scale factor (optional) |
The gamma factor is defined as sqrt(1+g'*g) and can be interpreted as the factor by which the residual of the Krylov decomposition is scaled.
If the recover flag is activated, the computed translation undoes the translation done previously. In that case, parameter tau is ignored.