12
12
#include "petscmat.h"
13
13
int MatCreate(MPI_Comm comm,int m,int n,int M,int N,Mat *A)
15
Collective on MPI_Comm
15
Collective on <A HREF="../Sys/MPI_Comm.html#MPI_Comm">MPI_Comm</A>
17
17
<H3><FONT COLOR="#CC3333">Input Parameters</FONT></H3>
18
18
<TABLE border="0" cellpadding="0" cellspacing="0">
19
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>m </B></TD><TD>- number of local rows (or PETSC_DECIDE)
21
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>n </B></TD><TD>- number of local columns (or PETSC_DECIDE)
23
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Vec/M.html#M">M</A> </B></TD><TD>- number of global rows (or PETSC_DETERMINE)
25
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>N </B></TD><TD>- number of global columns (or PETSC_DETERMINE)
19
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>m </B></TD><TD>- number of local rows (or <A HREF="../Sys/PETSC_DECIDE.html#PETSC_DECIDE">PETSC_DECIDE</A>)
21
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>n </B></TD><TD>- number of local columns (or <A HREF="../Sys/PETSC_DECIDE.html#PETSC_DECIDE">PETSC_DECIDE</A>)
23
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>M </B></TD><TD>- number of global rows (or <A HREF="../Sys/PETSC_DETERMINE.html#PETSC_DETERMINE">PETSC_DETERMINE</A>)
25
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>N </B></TD><TD>- number of global columns (or <A HREF="../Sys/PETSC_DETERMINE.html#PETSC_DETERMINE">PETSC_DETERMINE</A>)
27
27
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B><A HREF="../Sys/comm.html#comm">comm</A> </B></TD><TD>- MPI communicator
56
56
for additional format-specific options.
58
58
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
59
If PETSC_DECIDE is not used for the arguments 'm' and 'n', then the
59
If <A HREF="../Sys/PETSC_DECIDE.html#PETSC_DECIDE">PETSC_DECIDE</A> is not used for the arguments 'm' and 'n', then the
60
60
user must ensure that they are chosen to be compatible with the
61
61
vectors. To do this, one first considers the matrix-vector product
62
62
'y = A x'. The 'm' that is used in the above routine must match the
88
88
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
89
89
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
90
90
<P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
91
<A HREF="../../../src/sles/examples/tutorials/ex1.c.html">src/sles/examples/tutorials/ex1.c.html</A><BR>
92
<A HREF="../../../src/sles/examples/tutorials/ex2.c.html">src/sles/examples/tutorials/ex2.c.html</A><BR>
93
<A HREF="../../../src/sles/examples/tutorials/ex3.c.html">src/sles/examples/tutorials/ex3.c.html</A><BR>
94
<A HREF="../../../src/sles/examples/tutorials/ex4.c.html">src/sles/examples/tutorials/ex4.c.html</A><BR>
95
<A HREF="../../../src/sles/examples/tutorials/ex5.c.html">src/sles/examples/tutorials/ex5.c.html</A><BR>
96
<A HREF="../../../src/sles/examples/tutorials/ex7.c.html">src/sles/examples/tutorials/ex7.c.html</A><BR>
97
<A HREF="../../../src/sles/examples/tutorials/ex8.c.html">src/sles/examples/tutorials/ex8.c.html</A><BR>
98
<A HREF="../../../src/sles/examples/tutorials/ex9.c.html">src/sles/examples/tutorials/ex9.c.html</A><BR>
99
<A HREF="../../../src/sles/examples/tutorials/ex11.c.html">src/sles/examples/tutorials/ex11.c.html</A><BR>
100
<A HREF="../../../src/sles/examples/tutorials/ex12.c.html">src/sles/examples/tutorials/ex12.c.html</A><BR>
101
<A HREF="../../../src/sles/examples/tutorials/ex15.c.html">src/sles/examples/tutorials/ex15.c.html</A><BR>
91
<A HREF="../../../src/mat/examples/tutorials/ex2.c.html">src/mat/examples/tutorials/ex2.c.html</A><BR>
92
<A HREF="../../../src/mat/examples/tutorials/ex3.c.html">src/mat/examples/tutorials/ex3.c.html</A><BR>
93
<A HREF="../../../src/ksp/examples/tutorials/ex1.c.html">src/ksp/examples/tutorials/ex1.c.html</A><BR>
94
<A HREF="../../../src/ksp/examples/tutorials/ex2.c.html">src/ksp/examples/tutorials/ex2.c.html</A><BR>
95
<A HREF="../../../src/ksp/examples/tutorials/ex3.c.html">src/ksp/examples/tutorials/ex3.c.html</A><BR>
96
<A HREF="../../../src/ksp/examples/tutorials/ex4.c.html">src/ksp/examples/tutorials/ex4.c.html</A><BR>
97
<A HREF="../../../src/ksp/examples/tutorials/ex5.c.html">src/ksp/examples/tutorials/ex5.c.html</A><BR>
98
<A HREF="../../../src/ksp/examples/tutorials/ex7.c.html">src/ksp/examples/tutorials/ex7.c.html</A><BR>
99
<A HREF="../../../src/ksp/examples/tutorials/ex8.c.html">src/ksp/examples/tutorials/ex8.c.html</A><BR>
100
<A HREF="../../../src/ksp/examples/tutorials/ex9.c.html">src/ksp/examples/tutorials/ex9.c.html</A><BR>
101
<A HREF="../../../src/ksp/examples/tutorials/ex11.c.html">src/ksp/examples/tutorials/ex11.c.html</A><BR>