1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="https://slepc.upv.es/documentation/current/docs/manualpages/EPS/EPSSetProblemType.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<link rel="stylesheet" href="/slepc.css" type="text/css">
<TITLE>EPSSetProblemType</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>slepc-3.22.2 2024-12-02</b></div>
<div id="bugreport" align=right><a href="mailto:slepc-maint@upv.es?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: slepc-3.22.2 v3.22.2 docs/manualpages/EPS/EPSSetProblemType.html "><small>Report Typos and Errors</small></a></div>
<H1>EPSSetProblemType</H1>
Specifies the type of the eigenvalue problem.
<H3><FONT COLOR="#883300">Synopsis</FONT></H3>
<PRE>
#include "slepceps.h"
<A HREF="https://petsc.org/release/manualpages/Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../EPS/EPSSetProblemType.html#EPSSetProblemType">EPSSetProblemType</A>(<A HREF="../EPS/EPS.html#EPS">EPS</A> eps,<A HREF="../EPS/EPSProblemType.html#EPSProblemType">EPSProblemType</A> type)
</PRE>
Logically Collective
<P>
<H3><FONT COLOR="#883300">Input Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>eps </B></TD><TD> - the eigensolver context
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>type </B></TD><TD> - a known type of eigenvalue problem
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Options Database Keys</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_hermitian </B></TD><TD> - Hermitian eigenvalue problem
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_gen_hermitian </B></TD><TD> - generalized Hermitian eigenvalue problem
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_non_hermitian </B></TD><TD> - non-Hermitian eigenvalue problem
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_gen_non_hermitian </B></TD><TD> - generalized non-Hermitian eigenvalue problem
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_pos_gen_non_hermitian </B></TD><TD> - generalized non-Hermitian eigenvalue problem
with positive semi-definite B
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_gen_indefinite </B></TD><TD> - generalized Hermitian-indefinite eigenvalue problem
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-eps_bse </B></TD><TD> - structured Bethe-Salpeter eigenvalue problem
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Notes</FONT></H3>
This function must be used to instruct SLEPc to exploit symmetry or other
kind of structure. If no
problem type is specified, by default a non-Hermitian problem is assumed
(either standard or generalized). If the user knows that the problem is
Hermitian (i.e. A=A^H) or generalized Hermitian (i.e. A=A^H, B=B^H, and
B positive definite) then it is recommended to set the problem type so
that eigensolver can exploit these properties.
<P>
If the user does not call this function, the solver will use a reasonable
guess.
<P>
For structured problem types such as <A HREF="../EPS/EPSProblemType.html#EPSProblemType">EPS_BSE</A>, the matrices passed in via
<A HREF="../EPS/EPSSetOperators.html#EPSSetOperators">EPSSetOperators</A>() must have been created with the corresponding helper
function, i.e., <A HREF="../sys/MatCreateBSE.html#MatCreateBSE">MatCreateBSE</A>().
<P>
<P>
<H3><FONT COLOR="#883300">See Also</FONT></H3>
<A HREF="../EPS/EPSSetOperators.html#EPSSetOperators">EPSSetOperators</A>(), <A HREF="../EPS/EPSSetType.html#EPSSetType">EPSSetType</A>(), <A HREF="../EPS/EPSGetProblemType.html#EPSGetProblemType">EPSGetProblemType</A>(), <A HREF="../EPS/EPSProblemType.html#EPSProblemType">EPSProblemType</A>
<BR><P><B></B><H3><FONT COLOR="#883300">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#883300">Location</FONT></H3>
</B><A HREF="../../../src/eps/interface/epsopts.c.html#EPSSetProblemType">src/eps/interface/epsopts.c</A>
<P><H3><FONT COLOR="#883300">Examples</FONT></H3>
<A HREF="../../../src/eps/tutorials/ex1.c.html">src/eps/tutorials/ex1.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex1f.F90.html">src/eps/tutorials/ex1f.F90</A><BR>
<A HREF="../../../src/eps/tutorials/ex2.c.html">src/eps/tutorials/ex2.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex3.c.html">src/eps/tutorials/ex3.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex5.c.html">src/eps/tutorials/ex5.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex6f.F90.html">src/eps/tutorials/ex6f.F90</A><BR>
<A HREF="../../../src/eps/tutorials/ex9.c.html">src/eps/tutorials/ex9.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex10.c.html">src/eps/tutorials/ex10.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex10f.F90.html">src/eps/tutorials/ex10f.F90</A><BR>
<A HREF="../../../src/eps/tutorials/ex11.c.html">src/eps/tutorials/ex11.c</A><BR>
<A HREF="../../../src/eps/tutorials/ex12.c.html">src/eps/tutorials/ex12.c</A><BR>
<BR><BR><A HREF="./index.html">Index of all EPS routines</A>
<BR><A HREF="../../../docs/manual.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|