MatGetSize

Returns the numbers of rows and columns in a matrix.

Synopsis

#include "petscmat.h" 
int MatGetSize(Mat mat,int *m,int* n)
Not Collective

Input Parameter

mat -the matrix

Output Parameters

m - the number of global rows
n - the number of global columns

Keywords

matrix, dimension, size, rows, columns, global, get

See Also

MatGetLocalSize()

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

Examples

src/snes/examples/tutorials/ex3.c