Skip to content

Accept arbitrary arrays also for var and std.#98

Open
GunnarFarneback wants to merge 2 commits intoJuliaMath:masterfrom
GunnarFarneback:var_and_std_for_arrays
Open

Accept arbitrary arrays also for var and std.#98
GunnarFarneback wants to merge 2 commits intoJuliaMath:masterfrom
GunnarFarneback:var_and_std_for_arrays

Conversation

@GunnarFarneback
Copy link
Copy Markdown

Most functions were extended from Vector to AbstractArray in #20, but not var and std. I don't see a need for this inconsistency, so this PR loosens their type constraints. It also revises their docstrings to make a bit more sense.

@codecov
Copy link
Copy Markdown

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.15%. Comparing base (b1040f3) to head (b0fbe83).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #98   +/-   ##
=======================================
  Coverage   94.15%   94.15%           
=======================================
  Files           1        1           
  Lines         154      154           
=======================================
  Hits          145      145           
  Misses          9        9           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/NaNMath.jl Outdated
Comment thread src/NaNMath.jl
Comment thread src/NaNMath.jl
Comment thread src/NaNMath.jl Outdated
Comment thread src/NaNMath.jl
Comment thread src/NaNMath.jl
@GunnarFarneback
Copy link
Copy Markdown
Author

GunnarFarneback commented Nov 15, 2025

I agree that there are all sorts of improvements that could be made to this package but my ambitions don't go further than what's in this PR. Feel free to take it over and make a better PR if you want.

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