diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c6ac8d..711b69c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All notable changes to this project will be documented in this file. +## [0.16.1] - 2025-05-27 + +### Bug Fixes + +- Disable unused faer features (Adrian Seyboldt) + + +### Performance + +- Shortcut for empty posteriors (Adrian Seyboldt) + + ## [0.16.0] - 2025-05-27 ### Bug Fixes @@ -13,6 +25,8 @@ All notable changes to this project will be documented in this file. - Bump arrow version (Adrian Seyboldt) +- Bump version and update changelog (Adrian Seyboldt) + ### Performance @@ -24,6 +38,11 @@ All notable changes to this project will be documented in this file. - Remove simd_support feature (Adrian Seyboldt) +### Ci + +- Add codecov token (Adrian Seyboldt) + + ## [0.15.1] - 2025-03-18 ### Features diff --git a/Cargo.toml b/Cargo.toml index 2ac675b..47c5845 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nuts-rs" -version = "0.16.0" +version = "0.16.1" authors = [ "Adrian Seyboldt ", "PyMC Developers ", @@ -25,11 +25,7 @@ thiserror = "2.0.3" arrow = { version = "55.1.0", default-features = false, features = ["ffi"] } rand_chacha = "0.9.0" anyhow = "1.0.72" -faer = { version = "0.22.6", default-features = false, features = [ - "std", - "npy", - "linalg", -] } +faer = { version = "0.22.6", default-features = false, features = ["linalg"] } pulp = "0.21.4" rayon = "1.10.0" diff --git a/src/nuts.rs b/src/nuts.rs index 4184967..0072c69 100644 --- a/src/nuts.rs +++ b/src/nuts.rs @@ -274,6 +274,13 @@ where collector.register_init(math, init, options); let mut tree = NutsTree::new(init.clone()); + + if math.dim() == 0 { + let info = tree.info(false, None); + collector.register_draw(math, init, &info); + return Ok((init.clone(), info)); + } + while tree.depth < options.maxdepth { let direction: Direction = rng.random(); tree = match tree.extend(math, rng, hamiltonian, direction, collector, options) {