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 M target point indices into the user’s target coordinate array

  • K - array of N source point indices into the user’s source coordinate array

  • ptr - column-major output buffer of length M*N to fill with kernel values

  • ctx - the optional user context passed at registration

See Also#

Mat, MATHTOOL, MatCreateHtoolFromKernel(), MatHtoolSetKernel()

Level#

intermediate

Location#

include/petscmat.h

Examples#

src/ksp/ksp/tutorials/ex82.c


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