-
Notifications
You must be signed in to change notification settings - Fork 28
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
support dims #36
Comments
FWIW, I find that in this case something like sum(x -> !isnan(x) * x, arr, dims=1) (i.e., without using NaNMath) works just as well. (And is maybe a bit faster than a NaNMath implementation since it relies on the built-in |
nice solution for |
riffing on julia Base and daneel's code:
|
can we actually make this a PR? one issue I see is that
|
Hi @bjarthur! Thanks! |
support sum(arr, dims =1) like in standard julia sum to apply on a given axis.
The text was updated successfully, but these errors were encountered: