slepc-3.17.1 2022-04-11
Report Typos and Errors


Build the preconditioner matrix used in STMatSolve().


#include "slepcst.h" 
PetscErrorCode STMatSetUp(ST st,PetscScalar sigma,PetscScalar *coeffs)
Collective on st

Input Parameters

st  - the spectral transformation context
sigma  - the shift
coeffs  - the coefficients (may be NULL)


This function is not intended to be called by end users, but by SLEPc solvers that use ST. It builds matrix st->P as follows, then calls KSPSetUp().
    If (coeffs)  st->P = Sum_{i=0..nmat-1} coeffs[i]*sigma^i*A_i
    else         st->P = Sum_{i=0..nmat-1} sigma^i*A_i

See Also


Location: src/sys/classes/st/interface/stsolve.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages