int KSPComputeEigenvalues(KSP ksp,int n,double *r,double *c)Not Collective
ksp | - iterative context obtained from KSPCreate() |
n | - size of arrays r and c |
r | - real part of computed eigenvalues |
c | - complex part of computed eigenvalues |
-ksp_compute_eigenvalues | - Prints eigenvalues to stdout |
-ksp_plot_eigenvalues | - Plots eigenvalues in an x-window display |
One must call KSPSetComputeEigenvalues() before calling KSPSetUp() in order for this routine to work correctly.
Many users may just want to use the monitoring routineKSPSingularValueMonitor() (which can be set with option -ksp_singmonitor) to print the singular values at each iteration of the linear solve.
Location: src/ksp/interface/itfunc.c
KSP Index
Table of Contents