Skip to content

feat: Generalised Minkowski Metric (L_p norm)#291

Open
cbueth wants to merge 18 commits intosdd:v5.x.xfrom
cbueth:feature/minkowski
Open

feat: Generalised Minkowski Metric (L_p norm)#291
cbueth wants to merge 18 commits intosdd:v5.x.xfrom
cbueth:feature/minkowski

Conversation

@cbueth
Copy link

@cbueth cbueth commented Feb 13, 2026

This is a reopen for #287 after integrating the feedback from #286 . See the description in the initial PR. All tests still pass locally.

Closes #287

- deprecate `rd_update` with `D::accumulate` for consistent handling of sum-based and max-based metrics
- conditional logic for SIMD (L1/L2) and general L∞
- differentiate distance accumulation behaviour
- integration `nearest_n` tests (Chebyshev, Manhattan, SquaredEuclidean).
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 95.77465% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.07%. Comparing base (f87b965) to head (d7bebf0).

Files with missing lines Patch % Lines
src/traits.rs 29.41% 12 Missing ⚠️
src/float/distance.rs 98.34% 3 Missing and 5 partials ⚠️
src/fixed/distance.rs 93.69% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           v5.x.x     #291      +/-   ##
==========================================
+ Coverage   94.89%   95.07%   +0.17%     
==========================================
  Files          54       54              
  Lines        5685     6298     +613     
  Branches     5685     6298     +613     
==========================================
+ Hits         5395     5988     +593     
- Misses        273      286      +13     
- Partials       17       24       +7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments