MatInfo#

Context of matrix information, used with MatGetInfo()

Synopsis#

typedef struct {
  PetscLogDouble block_size;                          /* block size */
  PetscLogDouble nz_allocated, nz_used, nz_unneeded;  /* number of nonzeros */
  PetscLogDouble memory;                              /* memory allocated */
  PetscLogDouble assemblies;                          /* number of matrix assemblies called */
  PetscLogDouble mallocs;                             /* number of mallocs during MatSetValues() */
  PetscLogDouble fill_ratio_given, fill_ratio_needed; /* fill ratio for LU/ILU */
  PetscLogDouble factor_mallocs;                      /* number of mallocs during factorization */
} MatInfo;

Fortran Note#

MatInfo is a derived type, use e.g. matinfo%nz_allocated to access its components.

See Also#

Matrices, Mat, MatGetInfo(), MatInfoType

Level#

intermediate

Location#

include/petscmat.h

Examples#

src/mat/tutorials/ex16.c
src/mat/tests/ex1.c
src/mat/tests/ex132.c
src/mat/tests/ex23.c
src/mat/tests/ex49.c
src/mat/tests/ex5k.kokkos.cxx
src/mat/tests/ex62.c
src/mat/tests/ex6k.kokkos.cxx
src/mat/tests/ex7.c
src/mat/tests/ex72.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages