# QEPSetProblemType

Specifies the type of the quadratic eigenvalue problem.

### Synopsis

    #include "slepcqep.h"
    PetscErrorCode QEPSetProblemType(QEP qep,QEPProblemType type)

Logically Collective on QEP

### Input Parameters

| qep | - the quadratic eigensolver context
| type | - a known type of quadratic eigenvalue problem

### Options Database Keys

| -qep_general | - general problem with no particular structure
| -qep_hermitian | - problem whose coefficient matrices are Hermitian
| -qep_gyroscopic | - problem with Hamiltonian structure

### Notes

Allowed values for the problem type are: general (QEP_GENERAL), Hermitian (QEP_HERMITIAN), and gyroscopic (QEP_GYROSCOPIC).

This function is used to instruct SLEPc to exploit certain structure in the quadratic eigenproblem. By default, no particular structure is assumed.

If the problem matrices are Hermitian (symmetric in the real case) or Hermitian/skew-Hermitian then the solver can exploit this fact to perform less operations or provide better stability.

### See Also

QEPSetOperators(), QEPSetType(), QEPGetProblemType(), QEPProblemType

Location: src/qep/interface/qepopts.c
Index of all QEP routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/qep/examples/tutorials/ex16.c.html
src/qep/examples/tutorials/ex16f90.F90.html