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
|
<!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>SVDComputeResidualNorms</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1>SVDComputeResidualNorms</H1>
Computes the norms of the residual vectors associated with the i-th computed singular triplet.
<H3><FONT COLOR="#883300">Synopsis</FONT></H3>
<PRE>
#include "slepcsvd.h"
PetscErrorCode SVDComputeResidualNorms(SVD svd,PetscInt i,PetscReal *norm1,PetscReal *norm2)
</PRE>
Collective on <A HREF="../SVD/SVD.html#SVD">SVD</A>
<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>svd </B></TD><TD> - the singular value solver context
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>i </B></TD><TD> - the solution index
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Output Parameters</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>norm1 </B></TD><TD> - the norm ||A*v-sigma*u||_2 where sigma is the
singular value, u and v are the left and right singular vectors.
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>norm2 </B></TD><TD> - the norm ||A^T*u-sigma*v||_2 with the same sigma, u and v
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Note</FONT></H3>
The index i should be a value between 0 and nconv-1 (see <A HREF="../SVD/SVDGetConverged.html#SVDGetConverged">SVDGetConverged</A>()).
Both output parameters can be NULL on input if not needed.
<P>
<P>
<H3><FONT COLOR="#883300">See Also</FONT></H3>
<A HREF="../SVD/SVDSolve.html#SVDSolve">SVDSolve</A>(), <A HREF="../SVD/SVDGetConverged.html#SVDGetConverged">SVDGetConverged</A>(), <A HREF="../SVD/SVDComputeRelativeError.html#SVDComputeRelativeError">SVDComputeRelativeError</A>()
<BR><P><B><FONT COLOR="#883300">Location: </FONT></B><A HREF="../../../src/svd/interface/svdsolve.c.html#SVDComputeResidualNorms">src/svd/interface/svdsolve.c</A>
<BR><A HREF="./index.html">Index of all SVD 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>
|