#include "petscksp.h" PetscErrorCode KSPComputeEigenvalues(KSP ksp,PetscInt n,PetscReal r[],PetscReal c[],PetscInt *neig)Not Collective Many br
ksp | - iterative context obtained from KSPCreate() Many br | |
n | - size of arrays r and c. The number of eigenvalues computed (neig) will, in Many brgeneral, be less than this. Many br |
r | - real part of computed eigenvalues, provided by user with a dimension of at least n Many br | |
c | - complex part of computed eigenvalues, provided by user with a dimension of at least n Many br | |
neig | - actual number of eigenvalues computed (will be less than or equal to n) Many br |
-ksp_compute_eigenvalues | - Prints eigenvalues to stdout Many br | |
-ksp_plot_eigenvalues | - Plots eigenvalues in an x-window display Many br |
KSPComputeEigenvalues() does not usually provide accurate estimates; it is Many brintended only for assistance in understanding the convergence of iterative Many brmethods, not for eigenanalysis. For accurate computation of eigenvalues we recommend using Many brthe excellent package SLEPc. Many br
One must call KSPSetComputeEigenvalues() before calling KSPSetUp() Many brin order for this routine to work correctly. Many br
Many users may just want to use the monitoring routine Many brKSPMonitorSingularValue() (which can be set with option -ksp_monitor_singular_value) Many brto print the singular values at each iteration of the linear solve. Many br
Many br
Level:advanced
Location:src/ksp/ksp/interface/itfunc.c
Index of all KSP routines
Table of Contents for all manual pages
Index of all manual pages