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

Implement findmin, findmax, argmin, argmax #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jd-foster
Copy link

This is an attempt at building from #53 (and addressing issue #31) that aims to follow the existing style of code and docstrings of NaNMath. I'm going for clarity in both rather than generality or performance; in fact, deliberately restricting dispatch to AbstractFloat types. A lot of credit due on this to @sethaxen since I've adapted his PR tests and docstrings.

@sethaxen
Copy link

sethaxen commented Sep 1, 2022

How does this PR differ from #53? If the difference is small, why not add to #53?

@codecov
Copy link

codecov bot commented Sep 1, 2022

Codecov Report

Patch coverage: 100.00% and project coverage change: +1.17 🎉

Comparison is base (65a5928) 97.02% compared to head (b3f3f12) 98.20%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
+ Coverage   97.02%   98.20%   +1.17%     
==========================================
  Files           1        1              
  Lines         101      167      +66     
==========================================
+ Hits           98      164      +66     
  Misses          3        3              
Impacted Files Coverage Δ
src/NaNMath.jl 98.20% <100.00%> (+1.17%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@jd-foster
Copy link
Author

The main difference is it doesn't use the mapfoldl machinery; this is a style choice in some ways, since it wasn't clear to me how that worked, and might also be a challenge to other contributors.

Happy to make this a pull request to #53 instead, but want to run the check on this separately first.

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