MatCreateHtoolFromKernel#
Creates a MATHTOOL from a user-supplied kernel.
Synopsis#
Collective; No Fortran Support
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_target - coordinates of the target
coords_source - coordinates of the source
kernel - computational kernel (or
NULL)kernelctx - kernel context (if kernel is
NULL, the pointer must be of typehtool::VirtualGenerator<PetscScalar> *)
Output Parameter#
B - matrix
Options Database Keys#
-mat_htool_max_cluster_leaf_size size - maximal leaf size in cluster tree
-mat_htool_epsilon epsilon - relative error in Frobenius norm when approximating a block
-mat_htool_eta eta - admissibility condition tolerance
-mat_htool_min_target_depth depth - minimal cluster tree depth associated with the rows
-mat_htool_min_source_depth depth - minimal cluster tree depth associated with the columns
-mat_htool_block_tree_consistency (false|true) - block tree consistency
-mat_htool_recompression (false|true) - use recompression
-mat_htool_compressor (sympartialACA|fullACA|SVD) - type of compression
-mat_htool_clustering (PCARegular|PCAGeometric|BoundingBox1Regular|BoundingBox1Geometric) - type of clustering
See Also#
Matrices, Mat, MatCreate(), MATHTOOL, PCSetCoordinates(), MatHtoolSetKernel(), MatHtoolCompressorType, MatHtoolClusteringType, MatHtoolGetEpsilon(), MatHtoolSetEpsilon(), MatHtoolGetEta(), MatHtoolSetEta(), MatHtoolGetMaxClusterLeafSize(), MatHtoolSetMaxClusterLeafSize(), MatHtoolGetMinTargetDepth(), MatHtoolSetMinTargetDepth(), MatHtoolGetMinSourceDepth(), MatHtoolSetMinSourceDepth(), MatHtoolGetBlockTreeConsistency(), MatHtoolSetBlockTreeConsistency(), MatHtoolGetCompressorType(), MatHtoolSetCompressorType(), MatHtoolGetClusteringType(), MatHtoolSetClusteringType(), MATH2OPUS, MatCreateH2OpusFromKernel()
Level#
intermediate
Location#
Examples#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages