Skip to main content

Crate antecedent_kernels

Crate antecedent_kernels 

Source
Expand description

Low-level borrowed views and numerical kernels for causal-library.

Scalar kernels are the correctness reference. Portable-optimized and architecture-specific paths must pass the same differential tests

SPDX-License-Identifier: MIT OR Apache-2.0

Re-exports§

pub use dispatch::KernelImpl;
pub use dispatch::accumulate_contingency;
pub use dispatch::accumulate_contingency_rows;
pub use dispatch::arch_simd_available;
pub use dispatch::copy_vec;
pub use dispatch::gather;
pub use dispatch::masked_covariance;
pub use dispatch::masked_mean;
pub use dispatch::masked_sum;
pub use dispatch::masked_variance;
pub use dispatch::pairwise_l1_fill;
pub use dispatch::partial_correlation;
pub use dispatch::select_impl;
pub use dispatch::standardize_inplace;
pub use dispatch::weighted_dot;
pub use dispatch::weighted_mean;
pub use dispatch::weighted_sum;
pub use parcorr::ParCorrMode;
pub use parcorr::ParCorrQuery;
pub use parcorr::ParCorrWorkspace;
pub use parcorr::partial_correlation_batch;
pub use parcorr::pearson;
pub use posterior_reduce::PosteriorReduceOp;
pub use posterior_reduce::reduce_posterior_draws;
pub use rng::categorical_from_u;
pub use rng::fill_standard_normal;
pub use rng::sample_categorical;
pub use rng::shuffle;
pub use rng::standard_normal;
pub use rng::standard_normal_pair;
pub use rng::unbiased_index;
pub use scalar::sanitize_weight;
pub use special::erf;
pub use special::erfc;
pub use special::norm_cdf;
pub use special::norm_inv;
pub use special::norm_pdf;
pub use view::BitMaskView;
pub use view::F64MatrixView;
pub use view::F64VectorView;
pub use view::ViewError;

Modules§

dispatch
Once-per-batch kernel dispatch.
parcorr
Partial-correlation kernels.
portable
Portable optimized kernels (safe auto-vectorization friendly loops).
posterior_reduce
Posterior draw reductions.
rng
Small RNG helpers for sampling kernels.
scalar
Scalar reference kernels (correctness baseline).
special
Shared special functions (Abramowitz–Stegun erf family).
view
Library-owned borrowed vector and matrix views.