MatHasOperation
Determines whether the given matrix supports the particular operation.
Synopsis
int MatHasOperation(Mat mat,MatOperation op,PetscTruth *has)
Collective on
Mat
Input Parameters
mat | - the matrix
|
op | - the operation, for example, MATOP_GET_DIAGONAL
|
Output Parameter
has -either PETSC_TRUE or PETSC_FALSE
Notes
See the file petsc/include/mat.h for a complete list of
matrixoperations, which all have the form MATOP_<OPERATION>,
where<OPERATION> is the name (in all capital letters) of
theuser-level routine. E.g., MatNorm() -> MATOP_NORM.
Keywords
matrix, has, operation
See Also
MatCreateShell()
Location: src/mat/interface/mhas.c
Matrix Index
Table of Contents