int MatCreateSeqBDiag(MPI_Comm comm,int m,int n,int nd,int bs,int *diag,PetscScalar **diagv,Mat *A)Collective on MPI_Comm
comm | - MPI communicator, set to PETSC_COMM_SELF | |
m | - number of rows | |
n | - number of columns | |
nd | - number of block diagonals (optional) | |
bs | - each element of a diagonal is an bs x bs dense matrix | |
diag | - optional array of block diagonal numbers (length nd). For a matrix element A[i,j], where i=row and j=column, the diagonal number is | |
diagv | - pointer to actual diagonals (in same order as diag array), if allocated by user. Otherwise, set diagv=PETSC_NULL on input for PETSc to control memory allocation. |
Level:intermediate
Location:src/mat/impls/bdiag/seq/bdiag.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages