petsc-3.7.1 2016-05-15
MatCreateSeqAIJCRL
Creates a sparse matrix of type SEQAIJCRL. This type inherits from AIJ, but stores some additional information that is used to allow better vectorization of the matrix-vector product. At the cost of increased storage, the AIJ formatted matrix can be copied to a format in which pieces of the matrix are stored in ELLPACK format, allowing the vectorized matrix multiply routine to use stride-1 memory accesses. As with the AIJ type, it is important to preallocate matrix storage in order to get good assembly performance.
Synopsis
PetscErrorCode MatCreateSeqAIJCRL(MPI_Comm comm,PetscInt m,PetscInt n,PetscInt nz,const PetscInt nnz[],Mat *A)
Collective on MPI_Comm Many br
Input Parameters
| comm | - MPI communicator, set to PETSC_COMM_SELF Many br |
| m | - number of rows Many br |
| n | - number of columns Many br |
| nz | - number of nonzeros per row (same for all rows) Many br |
| nnz | - array containing the number of nonzeros in the various rows Many br(possibly different for each row) or NULL Many br |
Output Parameter
A -the matrix Many br
Notes
If nnz is given then nz is ignored Many br
Many br
Keywords
matrix, cray, sparse, parallel
See Also
MatCreate(), MatCreateMPIAIJPERM(), MatSetValues()
Level:intermediate
Location:src/mat/impls/aij/seq/crl/crl.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages