petsc-3.7.1 2016-05-15
Report Typos and Errors

MatSeqSBAIJSetPreallocationCSR

Allocates memory for a sparse sequential matrix in symmetric block AIJ format.

Synopsis

#include "petscmat.h" 
PetscErrorCode MatSeqSBAIJSetPreallocationCSR(Mat B,PetscInt bs,const PetscInt i[],const PetscInt j[], const PetscScalar v[])

Input Parameters

B - the matrix Many br
bs - size of block, the blocks are ALWAYS square. Many br
i - the indices into j for the start of each local row (starts with zero) Many br
j - the column indices for each local row (starts with zero) these must be sorted for each row Many br
v - optional values in the matrix Many br

Many br

Notes

The order of the entries in values is specified by the MatOption MAT_ROW_ORIENTED. For example, C programs Many brmay want to use the default MAT_ROW_ORIENTED=PETSC_TRUE and use an array v[nnz][bs][bs] where the second index is Many brover rows within a block and the last index is over columns within a block row. Fortran programs will likely set Many brMAT_ROW_ORIENTED=PETSC_FALSE and use a Fortran array v(bs,bs,nnz) in which the first index is over rows within a Many brblock column and the second index is over columns within a block. Many br

Keywords

matrix, block, aij, compressed row, sparse

See Also

MatCreate(), MatCreateSeqSBAIJ(), MatSetValuesBlocked(), MatSeqSBAIJSetPreallocation(), MATSEQSBAIJ

Level:developer
Location:
src/mat/impls/sbaij/seq/sbaij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages