Skip to main content

Module cubic_cell_kernel

Module cubic_cell_kernel 

Source

Structs§

CachedCellMoments
CellDerivativeMomentState
CellFingerprint
CellMomentCacheKey
CellMomentCacheStats
CellMomentDedupStats
CellMomentFingerprint
CellMomentScratch
CellMomentState
CellMomentStateRef
DenestedCubicCell
DenestedPartitionCell
LocalSpanCubic
TailCellMomentCache
Affine-tail cell-moment memo.
TailCellMomentCacheStats

Enums§

CubicCellKernelError
Typed errors raised by the de-nested cubic transport kernel.
ExactCellBranch
PartitionEdge
Provenance of one boundary of a denested partition cell.

Constants§

ANCHORED_DEVIATION_KERNEL
CELL_MOMENT_INLINE_CAPACITY
GL20_NODES
Canonical 20-point Gauss–Legendre nodes on [-1, 1] (Abramowitz & Stegun 25.4), tabulated to f64 precision. Used here for the Drezner–Wesolowsky bivariate normal CDF representation — 20 points give >30-digit accuracy for the smooth arcsin-transformed integrand, ensuring the BVN value is exact to f64 precision for all (h, k, ρ) — and shared with the cubic-cell B-spline moment parity gate in [crate::gpu_kernels::cubic_bspline_moments].
GL20_WEIGHTS
Companion weights to GL20_NODES. Symmetric, summing to 2.
GL_NODES_FOR_GPU_KERNEL
384-point Gauss–Legendre nodes, re-exported for the GPU cubic-cell kernel (src/gpu/cubic_cell/kernel_src.rs) to embed as __constant__ device memory. Linux-only because the kernel emitter is Linux-only.
GL_WEIGHTS_FOR_GPU_KERNEL
Companion weights to GL_NODES_FOR_GPU_KERNEL.
NORMALIZED_CELL_BRANCH_TOL
Default normalized non-affine branch tolerance used by branch_cell.

Functions§

affine_anchor_moment_vector
bivariate_normal_cdf
branch_cell
build_denested_partition_cells
build_denested_partition_cells_with_tails
Build a partition covering (-∞, +∞) with parameter-independent outer bounds. Interior cells use the same finite-cell polynomial algebra. The two tail cells are guaranteed affine (c2=c3=0) because both deviations saturate to constants outside their knot support.
cell_density_boundary_integrand
Pointwise value of the density-weighted integrand g(z)·exp(-q(z))/2π at a single z, for an arbitrary integrand polynomial g.
cell_first_derivative_from_moments
cell_first_derivative_required_max_degree
Maximum moment index (i.e. max_degree passed to evaluate_cell_moments) required to evaluate cell_first_derivative_from_moments(derivative_coefficients, moments).
cell_fourth_derivative_from_moments
cell_moment_cache_key
cell_moment_fingerprint
Returns a deterministic geometric fingerprint for a de-nested cubic cell.
cell_polynomial_integral_from_moments
cell_second_derivative_boundary_integrand
Pointwise value of the cell second-derivative integrand (∂²/∂r∂s) exp(-q(z))/2π at a single z, evaluated from the SAME (r, s, rs) coefficient polynomials the moment reduction cell_second_derivative_from_moments integrates:
cell_second_derivative_from_moments
cell_second_derivative_required_max_degree
Maximum moment index required by cell_second_derivative_from_moments.
cell_third_derivative_from_moments
denested_cell_coefficient_partials
denested_cell_coefficients
denested_cell_second_partials
denested_cell_third_partials
evaluate_affine_cell_state
Evaluate an affine cell (c2=c3=0) with a value/moment-consistent primitive.
evaluate_cell_derivative_moments_cached
Derivative-moment counterpart to evaluate_cell_moments_cached. Shares the value-moment LRU by storing both moment kinds in a single CachedCellMoments entry keyed on the cell fingerprint — derivative insertions preserve any pre-existing value state and vice versa, so the two callers never evict each other’s work.
evaluate_cell_derivative_moments_uncached
Evaluate only the moment vector needed by derivative contractions.
evaluate_cell_moments
De-nested cubic cell evaluator.
evaluate_cell_moments_cached
Evaluate a de-nested cubic cell through a fit-lifetime byte-limited LRU cache.
evaluate_cell_moments_uncached
Evaluate cell moments without consulting the global affine-tail memo.
evaluate_cell_moments_with_scratch
Scratch-backed variant of evaluate_cell_moments.
global_cubic_from_local
interval_probe_point
link_basis_cell_coefficient_partials
link_basis_cell_coefficients
link_basis_cell_second_partials
link_basis_cell_third_partials
non_affine_ladder_cert_histogram
Snapshot the ladder certification histogram as (rung_node_count, count) pairs plus the terminal-fallthrough count, for logging/inspection.
normalized_non_affine_coefficients
quartic_qprime_coefficients
reduce_quartic_moments
reduce_sextic_moments
reset_tail_cell_moment_cache
score_basis_cell_coefficients
set_tail_cell_moment_cache_enabled
sextic_qprime_coefficients
tail_cell_moment_cache_stats
transformed_link_cubic
Return the cubic polynomial coefficients (in z) of f(z) = link_span.evaluate(a + b*z).

Type Aliases§

CellMomentLruCache
CellMomentVec