How marouane-35/scalable_gp works
h2pack-gp is a Python interface to a modified C H2Pack library for compressing kernel matrices in high-dimensional Gaussian-process workloads. The main workflow is to supply point coordinates and a kernel, build a hierarchical matrix, then use its fast matrix-vector product for computations such as Gaussian sampling; the wrapper also exposes approximation-error and memory statistics. Internally, tree partitioning and sampled-point basis construction produce the compressed representation. The README documents the high-level workflow and options; some library branches are included based on the source index, but their call details were not sampled.
Main entry points: pyh2pack.c Python binding · h2pack_gp.py Python API · H2Pack_build_with_sample_point.c Sample-point build · H2Pack_matvec.c H² matvec
Components 20
Python interface
- Point datasets
hmbench/data.py - Python API
h2pack_gp.py - Python binding
H2Pack-master/pyh2pack/pyh2pack.c - Error and memory
h2pack_gp.py
H² construction
- Kernel functions
H2Pack-master/pyh2pack/pyh2pack_kernel.h - Tree partitioning
H2Pack-master/src/H2Pack_partition.c - Sample-point build
H2Pack-master/src/H2Pack_build_with_sample_point.c - Classic H² build
H2Pack-master/src/H2Pack_build.c - ID compression
H2Pack-master/src/H2Pack_ID_compress.c
Matrix operations
- H² matvec
H2Pack-master/src/H2Pack_matvec.c - H² matmul
H2Pack-master/src/H2Pack_matmul.c - Gaussian sampling
h2pack_gp.py - HSS conversion
H2Pack-master/src/H2Pack_SPDHSS_H2.c - HSS ULV solve
H2Pack-master/src/H2Pack_HSS_ULV.c - AFN preconditioner
H2Pack-master/src/AFN_precond.c - Periodic operations
H2Pack-master/src/H2Pack_matvec_periodic.c
H2Pack internals
- H² matrix state
H2Pack-master/src/H2Pack_aux_structs.h - SIMD kernel layer
H2Pack-master/src/ASTER/include/aster.h - Matrix file I/O
H2Pack-master/src/H2Pack_file_IO.c
Other components
- Python caller
Connections 23
- Python caller → Point datasets: selects data
- Python caller → Python API: calls build
- Point datasets → Python API: supplies coordinates
- Python API → Python binding: creates H2Mat
h2pack_gp.py - Python binding → Sample-point build: builds matrix
H2Pack-master/pyh2pack/pyh2pack.c - Python binding → Classic H² build: selects build path
- Sample-point build → Tree partitioning: uses partitioning
H2Pack-master/src/H2Pack_build_with_sample_point.c - Classic H² build → Tree partitioning: uses partitioning
H2Pack-master/src/H2Pack_build.c - Sample-point build → ID compression: uses compression
H2Pack-master/src/H2Pack_build_with_sample_point.c - Sample-point build → Kernel functions: evaluates kernel
- Classic H² build → Kernel functions: evaluates kernel
- Python binding → H² matrix state: holds matrix state
H2Pack-master/pyh2pack/pyh2pack.c - Python binding → H² matvec: dispatches product
- Python binding → H² matmul: dispatches product
- Python binding → Error and memory: exposes statistics
- Python API → H² matvec: calls matvec
- Python API → Gaussian sampling: computes sample
h2pack_gp.py - Gaussian sampling → H² matvec: iterates products
h2pack_gp.py - Python API → Error and memory: reports quality
h2pack_gp.py - HSS conversion → H² matrix state: reads H² structure
H2Pack-master/src/H2Pack_SPDHSS_H2.c - HSS ULV solve → H² matrix state: uses matrix state
H2Pack-master/src/H2Pack_HSS_ULV.c - AFN preconditioner → H² matrix state: uses matrix state
H2Pack-master/src/AFN_precond.c - H² matvec → SIMD kernel layer: uses kernels