slepc-3.17.0 2022-03-31
Report Typos and Errors

# NEPErrorView

Displays the errors associated with the computed solution (as well as the eigenvalues).

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPErrorView(NEP nep,NEPErrorType etype,PetscViewer viewer)

Collective on nep

### Input Parameters

| nep | - the nonlinear eigensolver context
| etype | - error type
| viewer | - optional visualization context

### Options Database Keys

| -nep_error_absolute | - print absolute errors of each eigenpair
| -nep_error_relative | - print relative errors of each eigenpair
| -nep_error_backward | - print backward errors of each eigenpair

### Notes

By default, this function checks the error of all eigenpairs and prints the eigenvalues if all of them are below the requested tolerance. If the viewer has format=PETSC_VIEWER_ASCII_INFO_DETAIL then a table with eigenvalues and corresponding errors is printed.

### See Also

NEPSolve(), NEPValuesView(), NEPVectorsView()

Location: src/nep/interface/nepview.c

### Examples

src/nep/tutorials/ex21.c.html
src/nep/tutorials/ex22.c.html
src/nep/tutorials/ex27.c.html
src/nep/tutorials/ex22f90.F90.html
src/nep/tutorials/ex27f90.F90.html
src/nep/tutorials/nlevp/loaded_string.c.html
src/nep/tutorials/nlevp/gun.c.html
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages