This release adds balance indices for measuring tree shape across Rust, Python, and R, and refactors the Rust core to unify vector/matrix dispatch.
New features
- Added balance indices (Sackin index, leaf depth variance, B2 index) across Rust, Python, and R
APIs for quantifying tree balance/imbalance.
Refactors
- Unified vector/matrix dispatch in the Rust core via a Tree enum, simplifying the API surface.
- Renamed distances module to distance in Rust for naming consistency.
Fixes & CI
- Fixed Windows builds by adding PyO3 generate-import-lib feature.
- Skipped Suggests in CD R builds to speed up the R release pipeline.
Documentation
- Simplified docstring for get_node_depths in Rust.
Dependencies
- Bumped rand to 0.9.3.
- Bumped prefix-dev/setup-pixi (0.9.3 → 0.9.5) and softprops/action-gh-release (2 → 3).
- Routine pre-commit hook updates.
What's Changed
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #184
- build(deps): bump prefix-dev/setup-pixi from 0.9.3 to 0.9.4 in the actions group by @dependabot[bot] in #185
- refactor: rename distances --> distance in rs by @Neclow in #186
- feat(rs): add balance indices (sackin, leaf depth variance, b2) by @Neclow in #187
- feat(py): add balance indices by @Neclow in #188
- docs(rs): simplify docstring in get_node_depths by @Neclow in #190
- refactor: unify vector/matrix dispatch with Tree enum by @Neclow in #191
- feat(r): add balance indices by @Neclow in #192
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #193
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #194
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #195
- build(deps): bump the actions group with 3 updates by @dependabot[bot] in #196
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #197
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #198
- build(deps): bump prefix-dev/setup-pixi from 0.9.4 to 0.9.5 in the actions group by @dependabot[bot] in #199
- build(deps): bump rand from 0.9.2 to 0.9.3 by @dependabot[bot] in #201
- build(deps): bump softprops/action-gh-release from 2 to 3 in the actions group by @dependabot[bot] in #200
- fix(ci): add PyO3 generate-import-lib for Windows builds by @Neclow in #202
- chore: update pre-commit hooks by @pre-commit-ci[bot] in #203
- ci(r): skip Suggests in CD R builds by @Neclow in #204
Full Changelog: v1.7.0...v1.8.0