petsc-3.3-p7 2013-05-11

MatIJGetSupport

retrieves the global indices of the graph's vertices of nonzero outdegree (i.e., the global indices of this processor's nonzero rows). If the graph is regarded as a multivalued map on integers, this is the support of the map (i.e., the set of indices with nonempty images).

Synopsis

#undef  __FUNCT__
#define __FUNCT__ "MatIJGetSupport"
PetscErrorCode MatIJGetSupport(Mat A, PetscInt *len, PetscInt **supp) 

Not collective

Input parameters

A -pseudograph

Output parameters

len - the length of the support array
supp - the support array

Note

This operation fails for a nonassembled matrix.- . In general, the returned indices are unsorted; use PetscSortInt, if necessary.
The caller is responsible for freeing the support array.-

See Also

MATIJ, MatIJGetSupportIS(), MatIJGetImage()

Level:intermediate
Location:
src/mat/impls/ij/matij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages