#include "mat.h" int MatCreate(MPI_Comm comm,int m,int n,int M,int N,Mat *A)Collective on MPI_Comm
m | - number of local rows (or PETSC_DECIDE) | |
n | - number of local columns (or PETSC_DECIDE) | |
M | - number of global rows (or PETSC_DETERMINE) | |
N | - number of global columns (or PETSC_DETERMINE) | |
comm | - MPI communicator |
-mat_aij | - AIJ type | |
-mat_baij | - block AIJ type | |
-mat_dense | - dense type | |
-mat_bdiag | - block diagonal type |
-mat_seqaij | - AIJ type, uses MatCreateSeqAIJ() | |
-mat_mpiaij | - AIJ type, uses MatCreateMPIAIJ() | |
-mat_seqbdiag | - block diagonal type, uses MatCreateSeqBDiag() | |
-mat_mpibdiag | - block diagonal type, uses MatCreateMPIBDiag() | |
-mat_mpirowbs | - rowbs type, uses MatCreateMPIRowbs() | |
-mat_seqdense | - dense type, uses MatCreateSeqDense() | |
-mat_mpidense | - dense type, uses MatCreateMPIDense() | |
-mat_seqbaij | - block AIJ type, uses MatCreateSeqBAIJ() | |
-mat_mpibaij | - block AIJ type, uses MatCreateMPIBAIJ() |
This routine calls MatGetTypeFromOptions() to determine the matrix type.
Level:beginner
Location:src/mat/utils/gcreate.c
Matrix Index
Table of Contents