Skip to main content

Crate legume_numeric

Crate legume_numeric 

Source
Expand description

Numeric / ML foundation for the legume ecosystem.

Modules:

  • fast_math: fast, approximate f32 ln and ln Γ, and ln Γ increments
  • leiden — vendored CWTS/10x Leiden port (see NOTICE)
  • matrix — matrix IO, KNN, layout, stats (ex matrix-util)
  • param — parametric helpers (ex matrix-param)
  • candle — candle training helpers (ex candle-util; feature candle)
  • mcmc — MCMC engine: elliptical slice sampler, chain runner, diagnostics (feature mcmc)

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;

Modules§

fast_math
Fast, approximate ln and ln Γ in f32: Paul Mineiro’s fastapprox.
leiden
Leiden community detection algorithm
matrix
param