Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@sile
Copy link
Owner

@sile sile commented Apr 30, 2025

No description provided.

@sile sile requested a review from Copilot April 30, 2025 00:14
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request removes the dependency on ordered-float and updates float comparison logic to use the native total_cmp method for better integration with Rust’s standard library.

  • Replaces OrderedFloat usage with total_cmp in sorting and max-by comparisons in src/lib.rs and src/density_estimation/parzen.rs.
  • Removes the ordered-float dependency from Cargo.toml.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/lib.rs Updated float comparisons in sort and max operations to use total_cmp instead of OrderedFloat.
src/density_estimation/parzen.rs Replaced OrderedFloat usage with total_cmp in sorting and in the logsumexp function.
Cargo.toml Removed the ordered-float dependency.

@sile sile changed the title Remove ordered-float dependency and replace it with total_cmp method for float comparisons Remove ordered-float dependency and replace it with total_cmp method for float comparisons Apr 30, 2025
@sile sile merged commit a63257e into master Apr 30, 2025
9 checks passed
@sile sile deleted the remove-ordered-float branch April 30, 2025 00:15
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.

2 participants