From 4a6653d3be936daa0fb3b402bce7ecf2c4e71af3 Mon Sep 17 00:00:00 2001 From: Adrian Seyboldt Date: Tue, 27 May 2025 17:22:10 +0200 Subject: [PATCH 1/3] fix: disable unused faer features --- Cargo.toml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 2ac675b..aa2eb09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" From 35aa98b40a766f0f52d359aca33aabc1e6da6a86 Mon Sep 17 00:00:00 2001 From: Adrian Seyboldt Date: Tue, 27 May 2025 17:22:10 +0200 Subject: [PATCH 2/3] perf: shortcut for empty posteriors --- src/nuts.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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) { From ec9205f2763641e8a841fd85a51144040202a2e6 Mon Sep 17 00:00:00 2001 From: Adrian Seyboldt Date: Tue, 27 May 2025 17:22:10 +0200 Subject: [PATCH 3/3] chore(release): prepare bugfix release --- CHANGELOG.md | 19 +++++++++++++++++++ Cargo.toml | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) 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 aa2eb09..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 ",