MatCreateH2OpusFromKernel#
Creates a MATH2OPUS from a user-supplied kernel.
Synopsis#
Input Parameters#
comm - MPI communicator
m - number of local rows (or
PETSC_DECIDEto have calculated ifMis given)n - number of local columns (or
PETSC_DECIDEto have calculated ifNis given)M - number of global rows (or
PETSC_DETERMINEto have calculated ifmis given)N - number of global columns (or
PETSC_DETERMINEto have calculated ifnis given)spacedim - dimension of the space coordinates
coords - coordinates of the points
cdist - whether or not coordinates are distributed
kernel - computational kernel (or
NULL), seeMatH2OpusKernelFnfor the calling sequencekernelctx - kernel context
eta - admissibility condition tolerance
leafsize - leaf size in cluster tree
basisord - approximation order for Chebychev interpolation of low-rank blocks
Output Parameter#
nA - matrix
Options Database Keys#
-mat_h2opus_leafsize leafsize - Leaf size of cluster tree
-mat_h2opus_eta eta - Admissibility condition tolerance
-mat_h2opus_order order - Chebychev approximation order
-mat_h2opus_normsamples maxsamples - Maximum number of samples to be used when estimating norms
Note#
Requires ./configure with --download-h2opus or --with-h2opus-dir
See Also#
Matrices, Mat, MatCreate(), MATH2OPUS, MatCreateH2OpusFromMat(), MatH2OpusKernelFn
Level#
intermediate
Location#
Examples#
src/mat/tests/ex66.c
src/ksp/ksp/tutorials/ex21.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages