petsc-3.3-p7 2013-05-11


Registers a function via a pointer or a dynamic library url, that implements a polymorphic operation that is dispatched based on the op name and the declared arguments' type names.


#include "petscmat.h" 
PetscErrorCode  MatRegisterOp(MPI_Comm comm, const char url[], PetscVoidFunction function, const char op[], PetscInt numArgs, ...)
Formally collective on comm.

Input Parameters

comm - processors adding the op
url - routine locator (optional, if not using dynamic libraries and a nonempty fnc)
function - function pointer (optional, if using dynamic libraries and a nonempty url)
op - operation name
numArgs - number of op arguments
... - list of argument type names (const char*)

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