MatHtoolKernelFn#
Function type for the user-supplied kernel callback used by MATHTOOL (MatCreateHtoolFromKernel(), MatHtoolSetKernel()) to evaluate the dense matrix entries on demand
Synopsis#
PETSC_EXTERN_TYPEDEF typedef PetscErrorCode MatHtoolKernelFn(PetscInt, PetscInt, PetscInt, const PetscInt *, const PetscInt *, PetscScalar *, void *);
Synopsis#
#include <petscmat.h>
PetscErrorCode MatHtoolKernelFn(PetscInt sdim, PetscInt M, PetscInt N, const PetscInt *J, const PetscInt *K, PetscScalar *ptr, void *ctx)
Calling Sequence#
sdim - the spatial dimension of the source/target geometries
M - the number of target points
N - the number of source points
J - array of
Mtarget point indices into the user’s target coordinate arrayK - array of
Nsource point indices into the user’s source coordinate arrayptr - column-major output buffer of length
M*Nto fill with kernel valuesctx - the optional user context passed at registration
See Also#
Mat, MATHTOOL, MatCreateHtoolFromKernel(), MatHtoolSetKernel()
Level#
intermediate
Location#
Examples#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages