MatIsLinear#
Check if a shell matrix A is a linear operator.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatIsLinear(Mat A, PetscInt n, PetscBool *flg)
Collective
Input Parameters#
A - the shell matrix
n - number of random vectors to be tested
Output Parameter#
flg -
PETSC_TRUEif the shell matrix is linear;PETSC_FALSEotherwise.
See Also#
Mat, MatMatMultAddEqual(), MatMultEqual(), MatMultAddEqual(), MatMultTransposeEqual()
Level#
intermediate
Location#
Examples#
src/ksp/ksp/tutorials/ex14f.F90
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages