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
|
<!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>SlepcMatTile</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<H1>SlepcMatTile</H1>
Explicitly build a matrix from four blocks, G = [ a*A b*B; c*C d*D ].
<H3><FONT COLOR="#883300">Synopsis</FONT></H3>
<PRE>
#include "slepcsys.h"
PetscErrorCode SlepcMatTile(PetscScalar a,Mat A,PetscScalar b,Mat B,PetscScalar c,Mat C,PetscScalar d,Mat D,Mat *G)
</PRE>
Collective on Mat
<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>A </B></TD><TD> - matrix for top-left block
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>a </B></TD><TD> - scaling factor for block A
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>B </B></TD><TD> - matrix for top-right block
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>b </B></TD><TD> - scaling factor for block B
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>C </B></TD><TD> - matrix for bottom-left block
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>c </B></TD><TD> - scaling factor for block C
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>D </B></TD><TD> - matrix for bottom-right block
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>d </B></TD><TD> - scaling factor for block D
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#883300">Output parameter</FONT></H3>
<DT><B>G </B> - the resulting matrix
<br>
<P>
<H3><FONT COLOR="#883300">Notes</FONT></H3>
In the case of a parallel matrix, a permuted version of G is returned. The permutation
is a perfect shuffle such that the local parts of A, B, C, D remain in the local part of
G for the same process.
<P>
Matrix G must be destroyed by the user.
<P>
<P><B><FONT COLOR="#883300">Location: </FONT></B><A HREF="../../../src/sys/slepcutil.c.html#SlepcMatTile">src/sys/slepcutil.c</A>
<BR><A HREF="./index.html">Index of all sys 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>
|