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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://slepc.upv.es/documentation/current/docs/manualpages/BV/BVSetMatrix.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<link rel="stylesheet" href="/slepc.css" type="text/css">
<TITLE>BVSetMatrix</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>slepc-3.7.3 2016-09-29</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.7.3 v3.7.3 docs/manualpages/BV/BVSetMatrix.html "><small>Report Typos and Errors</small></a></div>
<H1>BVSetMatrix</H1>
Specifies the inner product to be used in orthogonalization.
<H3><FONT COLOR="#883300">Synopsis</FONT></H3>
<PRE>
#include "slepcbv.h"
PetscErrorCode BVSetMatrix(BV bv,Mat B,PetscBool indef)
</PRE>
Collective on <A HREF="../BV/BV.html#BV">BV</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>bv </B></TD><TD> - the basis vectors context
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>B </B></TD><TD> - a symmetric matrix (may be NULL)
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>indef </B></TD><TD> - a flag indicating if the matrix is indefinite
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Notes</FONT></H3>
This is used to specify a non-standard inner product, whose matrix
representation is given by B. Then, all inner products required during
orthogonalization are computed as (x,y)_B=y^H*B*x rather than the
standard form (x,y)=y^H*x.
<P>
Matrix B must be real symmetric (or complex Hermitian). A genuine inner
product requires that B is also positive (semi-)definite. However, we
also allow for an indefinite B (setting indef=PETSC_TRUE), in which
case the orthogonalization uses an indefinite inner product.
<P>
This affects operations <A HREF="../BV/BVDot.html#BVDot">BVDot</A>(), <A HREF="../BV/BVNorm.html#BVNorm">BVNorm</A>(), <A HREF="../BV/BVOrthogonalize.html#BVOrthogonalize">BVOrthogonalize</A>(), and variants.
<P>
Setting B=NULL has the same effect as if the identity matrix was passed.
<P>
<P>
<H3><FONT COLOR="#883300">See Also</FONT></H3>
<A HREF="../BV/BVGetMatrix.html#BVGetMatrix">BVGetMatrix</A>(), <A HREF="../BV/BVDot.html#BVDot">BVDot</A>(), <A HREF="../BV/BVNorm.html#BVNorm">BVNorm</A>(), <A HREF="../BV/BVOrthogonalize.html#BVOrthogonalize">BVOrthogonalize</A>()
<BR><P><B><FONT COLOR="#883300">Location: </FONT></B><A HREF="../../../src/sys/classes/bv/interface/bvbasic.c.html#BVSetMatrix">src/sys/classes/bv/interface/bvbasic.c</A>
<BR><A HREF="./index.html">Index of all BV 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>
|