File: EPSComputeResidualNorm.html

package info (click to toggle)
slepc 3.2-p5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 11,356 kB
  • sloc: ansic: 34,162; makefile: 2,041; python: 1,411; fortran: 486; f90: 184; sh: 9
file content (44 lines) | stat: -rw-r--r-- 1,955 bytes parent folder | download
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<link rel="stylesheet" href="/slepc/slepc.css" type="text/css">
<TITLE>EPSComputeResidualNorm</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">

<H1>EPSComputeResidualNorm</H1>
Computes the norm of the residual vector associated with  the i-th computed eigenpair. 
<H3><FONT COLOR="#883300">Synopsis</FONT></H3>
<PRE>
#include "slepceps.h" 
PetscErrorCode EPSComputeResidualNorm(EPS eps,PetscInt i,PetscReal *norm)
</PRE>
Collective on <A HREF="../EPS/EPS.html#EPS">EPS</A>
<P>
<H3><FONT COLOR="#883300">Input Parameter</FONT></H3>
<DT><B>eps </B> - the eigensolver context
<br>
<DT><B>i   </B> - the solution index
<br>
<P>
<H3><FONT COLOR="#883300">Output Parameter</FONT></H3>
<DT><B>norm </B> - the residual norm, computed as ||Ax-kBx||_2 where k is the 
eigenvalue and x is the eigenvector. 
If k=0 then the residual norm is computed as ||Ax||_2.
<br>
<P>
<H3><FONT COLOR="#883300">Notes</FONT></H3>
The index i should be a value between 0 and nconv-1 (see <A HREF="../EPS/EPSGetConverged.html#EPSGetConverged">EPSGetConverged</A>()).
Eigenpairs are indexed according to the ordering criterion established
with <A HREF="../EPS/EPSSetWhichEigenpairs.html#EPSSetWhichEigenpairs">EPSSetWhichEigenpairs</A>().
<P>

<P>
<H3><FONT COLOR="#883300">See Also</FONT></H3>
 <A HREF="../EPS/EPSSolve.html#EPSSolve">EPSSolve</A>(), <A HREF="../EPS/EPSGetConverged.html#EPSGetConverged">EPSGetConverged</A>(), <A HREF="../EPS/EPSSetWhichEigenpairs.html#EPSSetWhichEigenpairs">EPSSetWhichEigenpairs</A>()
<BR><P><B><FONT COLOR="#883300">Location: </FONT></B><A HREF="../../../src/eps/interface/solve.c.html#EPSComputeResidualNorm">src/eps/interface/solve.c</A>
<BR><A HREF="./index.html">Index of all EPS routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>