# QEPSetOperators

Sets the matrices associated with the quadratic eigenvalue problem.

### Synopsis

    #include "slepcqep.h"
    PetscErrorCode QEPSetOperators(QEP qep,Mat M,Mat C,Mat K)

Collective on QEP and Mat

### Input Parameters

| qep | - the eigenproblem solver context
| M | - the first coefficient matrix
| C | - the second coefficient matrix
| K | - the third coefficient matrix

### Notes

The quadratic eigenproblem is defined as (l^2*M + l*C + K)*x = 0, where l is the eigenvalue and x is the eigenvector.

### See Also

QEPSolve(), QEPGetOperators()

Location: src/qep/interface/qepsetup.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/ex17.c.html
src/qep/examples/tutorials/ex16f90.F90.html