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

Feature/412 add faer rs backend #549

Open
wants to merge 37 commits into
base: main
Choose a base branch
from

Conversation

geo-ant
Copy link

@geo-ant geo-ant commented Jan 3, 2025

Fixes: #412 add faer as math backend

This PR adds faer support to argmin-math. faer is a fast and rapidly evolving matrix backend that is gaining popularity in the numeric Rust ecosystem. I'm not associated with the project.

I've closely followed the logic of the nalgebra implementation and even manually copied and translated the tests, so that the behavior of the nalgebra implementation is kept with the faer implementation. The one exception I made is that an eye_like identity matrix can also be requested for non-square matrices without panicking. Otherwise I've kept the original behavior.

All implementations are available on the owned Mat<T> type and many (but not all) are available on the non-owning reference-type MatRef<T>.

@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.11%. Comparing base (40a25e6) to head (146db74).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #549   +/-   ##
=======================================
  Coverage   92.11%   92.11%           
=======================================
  Files         177      177           
  Lines       23672    23672           
=======================================
  Hits        21806    21806           
  Misses       1866     1866           

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

@stefan-k
Copy link
Member

stefan-k commented Jan 6, 2025

This is excellent, thank you! Rebasing on the current main should fix the failing CI. Could you add running the faer tests to the CI (section tests-argmin-math in .github/workflows/ci.yml), please?

@geo-ant geo-ant force-pushed the feature/412-add-faer-rs-backend branch from 03c5907 to 146db74 Compare January 7, 2025 05:30
@geo-ant
Copy link
Author

geo-ant commented Jan 7, 2025

done and done, fingers crossed this works now :)

@geo-ant
Copy link
Author

geo-ant commented Jan 11, 2025

Hi, not meaning to rush you, just checking in to see whether there's something else I can do.

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.

3 participants