Expand description
Numeric / ML foundation for the legume ecosystem.
Modules:
fast_math: fast, approximatef32lnandln Γ, andln Γincrementsleiden— vendored CWTS/10x Leiden port (seeNOTICE)matrix— matrix IO, KNN, layout, stats (exmatrix-util)param— parametric helpers (exmatrix-param)candle— candle training helpers (excandle-util; featurecandle)mcmc— MCMC engine: elliptical slice sampler, chain runner, diagnostics (featuremcmc)
Features: matrix and param work on nalgebra DMatrix alone.
tensor (default) adds candle Tensor support to the matrix code:
conversions, tensor IO, sampling and fused ops. ndarray (default) adds
ndarray Array2 support: IO, sampling, ndarray_stat, ndarray_gamma
and kNN from ndarray views. candle builds on tensor. metal and
cuda also run matrix code on the GPU (Umap::fit_on). A crate
that only needs DMatrix sets default-features = false with matrix
(or param) and links neither candle nor ndarray; with no features the
crate is leiden and fast_math alone.
Re-exports§
pub use candle_core;