Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nalgebra 0.33 support #505

Merged
merged 2 commits into from
Oct 27, 2024
Merged

Conversation

0e4ef622
Copy link
Contributor

@0e4ef622 0e4ef622 commented Aug 5, 2024

Since the Allocator trait changed, I added a trait alias to mimic the old Allocator trait.

@stefan-k
Copy link
Member

Hi, thanks also for this PR! Would you mind rebasing now that #504 is merged?

@codecov-commenter
Copy link

codecov-commenter commented Aug 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.49%. Comparing base (a9e3eb7) to head (168d918).
Report is 12 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #505      +/-   ##
==========================================
- Coverage   92.08%   91.49%   -0.60%     
==========================================
  Files         178      178              
  Lines       24455    23623     -832     
==========================================
- Hits        22520    21613     -907     
- Misses       1935     2010      +75     

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

Copy link
Member

@stefan-k stefan-k left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this work, this is highly valuable! :) I have one question out of curiosity, otherwise this is good to go!

Comment on lines 24 to 28
# simba
simba_0_6 = { package = "simba", version = "0.6", optional = true }
simba_0_7 = { package = "simba", version = "0.7", optional = true }
simba_0_8 = { package = "simba", version = "0.8", optional = true }
simba_0_9 = { package = "simba", version = "0.9", optional = true }
Copy link
Member

Choose a reason for hiding this comment

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

I'm not an nalgebra expert, could you explain to me why simba is needed as a dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

simba is already a dependency of nalgebra, it's just that nalgebra 0.33 no longer re-exports certain traits used in this crate like simba::scalar::ClosedAdd.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually taking a second look, I'm just replacing ClosedAdd with ClosedAddAssign which is reexported in 0.33, so I could remove simba and use the trait from nalgebra instead.

Copy link
Member

Choose a reason for hiding this comment

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

If its not necessary I'd prefer it if it were removed, simply to avoid having to manage it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I've removed it.

crates/argmin-math/src/lib.rs Show resolved Hide resolved
@stefan-k
Copy link
Member

stefan-k commented Sep 1, 2024

Could you add testing the 0.33 version to the CI, please?
This would be the appropriate place:

# nalgebra
- name: argmin-math (nalgebra_latest)
run: cargo test -p argmin-math --no-default-features --features "nalgebra_latest"
- name: argmin-math (nalgebra_v0_32)
run: cargo test -p argmin-math --no-default-features --features "nalgebra_v0_32"
- name: argmin-math (nalgebra_v0_31)
run: cargo test -p argmin-math --no-default-features --features "nalgebra_v0_31"
- name: argmin-math (nalgebra_v0_30)
run: cargo test -p argmin-math --no-default-features --features "nalgebra_v0_30"
- name: argmin-math (nalgebra_v0_29)
run: cargo test -p argmin-math --no-default-features --features "nalgebra_v0_29"

@AdrianEddy
Copy link

any update?

@david-cattermole
Copy link

Hi @stefan-k, it appears that @0e4ef622 added CI support in 0e4ef622@168d918.

@stefan-k
Copy link
Member

Apologies for being so absent recently. I'll try to address some of the open pull requests on Sunday.

@david-cattermole
Copy link

Apologies for being so absent recently. I'll try to address some of the open pull requests on Sunday.

No problem at all, we all get busy! 😄 Thank you for everything you do!
argmin is fantastic, and a lot of people really admire and appreciate your hard-work (I know I do).

@stefan-k
Copy link
Member

No problem at all, we all get busy! 😄 Thank you for everything you do! argmin is fantastic, and a lot of people really admire and appreciate your hard-work (I know I do).

Thanks for the kind words! :)
LGTM, Huge thanks to @0e4ef622 for your work and for addressing my request! :)

@stefan-k stefan-k merged commit 4913b72 into argmin-rs:main Oct 27, 2024
31 checks passed
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.

5 participants