#include "petscmat.h" int MatGetInfo(Mat mat,MatInfoType flag,MatInfo *info)Collective on Mat if MAT_GLOBAL_MAX or MAT_GLOBAL_SUM is used as the flag
flag | - flag indicating the type of parameters to be returned (MAT_LOCAL - local matrix, MAT_GLOBAL_MAX - maximum over all processors, MAT_GLOBAL_SUM - sum over all processors) | |
info | - matrix information context |
-log_info -mat_view_info
MatInfo info; Mat A; double mal, nz_a, nz_u; MatGetInfo(A,MAT_LOCAL,&info); mal = info.mallocs; nz_a = info.nz_allocated;
double precision info(MAT_INFO_SIZE) double precision mal, nz_a Mat A integer ierr call MatGetInfo(A,MAT_LOCAL,info,ierr) mal = info(MAT_INFO_MALLOCS) nz_a = info(MAT_INFO_NZ_ALLOCATED)
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