MatGetBlockSize#
Returns the matrix block size.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatGetBlockSize(Mat mat, PetscInt *bs)
Not Collective
Input Parameter#
mat - the matrix
Output Parameter#
bs - block size
Notes#
Block row formats are MATBAIJ and MATSBAIJ ALWAYS have square block storage in the matrix.
If the block size has not been set yet this routine returns 1.
See Also#
Matrices, Mat, MATBAIJ, MATSBAIJ, MatCreateSeqBAIJ(), MatCreateBAIJ(), MatGetBlockSizes()
Level#
intermediate
Location#
Examples#
src/mat/tests/ex107.c
src/mat/tests/ex183.c
src/mat/tests/ex230.c
src/mat/tests/ex26.c
src/mat/tests/ex42.c
src/mat/tests/ex53.c
src/mat/tests/ex74.c
src/mat/tests/ex77.c
src/ksp/ksp/tutorials/ex76.c
src/ksp/ksp/tests/lostnullspace.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages