# IPSetType

Selects the type for the IP object.

### Synopsis

    #include "slepcip.h"
    PetscErrorCode IPSetType(IP ip,IPType type)

Logically Collective on IP

### Input Parameter

| ip | - the inner product context
| type | - a known type

### Notes

Three types are available: IPBILINEAR, IPSESQUILINEAR, and IPINDEFINITE.

For complex scalars, the default is a sesquilinear form (x,y)=x^H*M*y and it is also possible to choose a bilinear form (x,y)=x^T*M*y (without complex conjugation). The latter could be useful e.g. in complex-symmetric eigensolvers.

In the case of real scalars, only the bilinear form (x,y)=x^T*M*y is available.

The indefinite inner product is reserved for the case of an indefinite matrix M. This is used for instance in symmetric-indefinite eigenproblems.

### See Also

IPGetType()

Location: src/ip/ipbasic.c
Index of all IP routines
Table of Contents for all manual pages
Index of all manual pages