#include "petscmat.h" PetscErrorCode PETSCMAT_DLLEXPORT MatCreateComposite(MPI_Comm comm,PetscInt nmat,const Mat *mats,Mat *mat)Collective on MPI_Comm
comm | - MPI communicator | |
nmat | - number of matrices to put in | |
mats | - the matrices |
MatCreate(comm,&mat);
MatSetSizes(mat,m,n,M,N);
MatSetType(mat,MATCOMPOSITE);
MatCompositeAddMat(mat,mats[0]);
....
MatCompositeAddMat(mat,mats[nmat-1]);
Level:advanced
Location:src/mat/impls/composite/mcomposite.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages