MatH2OpusSetSamplingMat#
Set a matrix to be sampled from matrix-vector products on another matrix to construct a hierarchical matrix.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatH2OpusSetSamplingMat(Mat A, Mat B, PetscInt bs, PetscReal tol)
Input Parameters#
A - the hierarchical matrix
B - the matrix to be sampled
bs - maximum number of samples to be taken concurrently
tol - relative tolerance for construction
Notes#
You need to call MatAssemblyBegin()
and MatAssemblyEnd()
to update the hierarchical matrix.
See Also#
Matrices, Mat
, MatCreate()
, MATH2OPUS
, MatCreateH2OpusFromMat()
, MatCreateH2OpusFromKernel()
, MatH2OpusCompress()
, MatH2OpusOrthogonalize()
Level#
intermediate
Location#
src/mat/impls/h2opus/cuda/math2opus.cu
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages