MatH2OpusKernelFn#

Function type for the user-supplied kernel callback used by MATH2OPUS (see MatCreateH2OpusFromKernel()) to evaluate the dense matrix entries on demand

Synopsis#

PETSC_EXTERN_TYPEDEF typedef PetscScalar MatH2OpusKernelFn(PetscInt spacedim, PetscReal target[], PetscReal source[], PetscCtx ctx);

Synopsis#

#include <petscmat.h>
PetscScalar MatH2OpusKernelFn(PetscInt spacedim, PetscReal target[], PetscReal source[], PetscCtx ctx)

Calling Sequence#

  • spacedim - spatial dimension, either 1, 2, or 3

  • target - spatial coordinate of the target point, its length is spacedim

  • source - spatial coordinate of the source point, its length is spacedim

  • ctx - the optional application context passed with MatCreateH2OpusFromKernel()

Note#

Returns the matrix entry coupling the target and source points

See Also#

Mat, MATH2OPUS, MATHTOOL, MatCreateH2OpusFromKernel()

Level#

intermediate

Location#

include/petscmat.h

Examples#

src/mat/tests/ex66.c


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