legume-numeric 0.8.15

Numeric and ML foundation for the legume ecosystem (matrix, Leiden, candle, MCMC)
Documentation
//! Numeric / ML foundation for the legume ecosystem.
//!
//! Modules:
//! - [`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 (ex `mcmc-util`; 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` and `mcmc` build on `tensor`. A crate
//! that only needs `DMatrix` sets `default-features = false` and links
//! neither candle nor ndarray.

pub mod leiden;

/// candle-core, for crates that use `Tensor` through the `tensor` feature
/// without a direct dependency on candle.
#[cfg(feature = "tensor")]
pub use candle_core;

#[cfg(feature = "matrix")]
pub mod matrix;

#[cfg(feature = "param")]
pub mod param;

#[cfg(feature = "candle")]
pub mod candle;

#[cfg(feature = "mcmc")]
pub mod mcmc;