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 support for generic math #84

Merged
merged 23 commits into from
Jun 12, 2024
Merged

Conversation

oliverbooth
Copy link
Owner

Requested by @RealityProgrammer

This change introduces extension methods for the generic math interfaces introduced in .NET 7. Most of the extension methods which were duplicated for all built in numeric types have been changed to accept INumber, IBinaryInteger, or a similar interface, in their stead.

This also means that any additional types I've missed are covered, and also covers any future numeric types .NET may plan to add as well as any custom defined types.

@oliverbooth oliverbooth added approved This issue has been approved by the developer vNext The next major version of X10D. net7.0 Issue applies to .NET 7. area-X10D.Math labels Aug 26, 2023
@oliverbooth oliverbooth added this to the 4.0.0 milestone Aug 26, 2023
@oliverbooth oliverbooth added this to In progress in X10D via automation Aug 26, 2023
@oliverbooth oliverbooth self-assigned this Aug 26, 2023
@oliverbooth oliverbooth added the net8.0 Issue applies to .NET 8. label Feb 12, 2024
Repository owner deleted a comment from sonarcloud bot Feb 17, 2024
Repository owner deleted a comment from sonarcloud bot Feb 17, 2024
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.96%. Comparing base (8eaa01b) to head (7f92772).

Additional details and impacted files
@@                Coverage Diff                @@
##           release/4.0.0      #84      +/-   ##
=================================================
+ Coverage          97.71%   97.96%   +0.25%     
=================================================
  Files                141      144       +3     
  Lines               3548     3595      +47     
  Branches             865      874       +9     
=================================================
+ Hits                3467     3522      +55     
  Misses                20       20              
+ Partials              61       53       -8     

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

@oliverbooth oliverbooth removed the net7.0 Issue applies to .NET 7. label Jun 12, 2024
@oliverbooth oliverbooth merged commit b8a0671 into release/4.0.0 Jun 12, 2024
5 checks passed
X10D automation moved this from In progress to Done Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue has been approved by the developer area-X10D.Collections area-X10D.Math net8.0 Issue applies to .NET 8. vNext The next major version of X10D.
Projects
X10D
Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant