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

Make mean() fallback method use the same type as sum() for accumulation #25748

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

nalimilan
Copy link
Member

This prevents overflow for small types, and makes it consistent with mean methods for AbstractArray.

Fixes #25739.

Also remove a mention of DataArrays by the way.

Cc: @TotalVerb, @simonbyrne

This prevents overflow for small types, and makes it consistent with
mean() methods for AbstractArray.
@ararslan ararslan added the maths Mathematical functions label Jan 25, 2018
@StefanKarpinski
Copy link
Member

Seems like a good idea.

@nalimilan
Copy link
Member Author

nalimilan commented Jan 29, 2018

Any objections to merging?

@nalimilan nalimilan merged commit 0eee1f0 into master Jan 30, 2018
@nalimilan nalimilan deleted the nl/mean branch January 30, 2018 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants