petsc-dev 2014-08-28
Report Typos and Errors

MatGetBlockSizes

Returns the matrix block row and column sizes; useful especially for the block row and block diagonal formats.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatGetBlockSizes(Mat mat,PetscInt *rbs, PetscInt *cbs)
Not Collective

Input Parameter

mat -the matrix

Output Parameter

rbs -row block size
cbs -coumn block size

Notes

Block row formats are MATSEQBAIJ, MATMPIBAIJ, MATSEQSBAIJ, MATMPISBAIJ.

If a block size has not been set yet this routine returns -1.

See Also

MatCreateSeqBAIJ(), MatCreateBAIJ(), MatGetBlockSize()

Level:intermediate
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages