slepc-3.22.2 2024-12-02
Report Typos and Errors

# SlepcEigenvalueComparisonFn

A prototype of an eigenvalue comparison function that would be passed to EPSSetEigenvalueComparison() and analogue functions in other solver types

### Synopsis

    PETSC_EXTERN_TYPEDEF typedef PetscErrorCode(SlepcEigenvalueComparisonFn)(PetscScalar ar,PetscScalar ai,PetscScalar br,PetscScalar bi,PetscInt *res,void *ctx);

### Calling Sequence

| ar | - real part of the 1st eigenvalue
| ai | - imaginary part of the 1st eigenvalue
| br | - real part of the 2nd eigenvalue
| bi | - imaginary part of the 2nd eigenvalue
| res | - [output] result of comparison
| ctx | - [optional] user-defined context for private data for the eigenvalue comparison routine (may be NULL)

### See Also

EPSSetEigenvalueComparison()

### Level

advanced

### Location

include/slepcsc.h
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages