#include "petscmat.h" int MatCreateSeqAIJWithArrays(MPI_Comm comm,int m,int n,int* i,int*j,PetscScalar *a,Mat *mat)Coolective on MPI_Comm
comm | - must be an MPI communicator of size 1 | |
m | - number of rows | |
n | - number of columns | |
i | - row indices | |
j | - column indices | |
a | - matrix values |
You cannot set new nonzero locations into this matrix, that will generate an error.
The i and j indices can be either 0- or 1 based
Level:intermediate
Location:src/mat/impls/aij/seq/aij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages