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 dimension specification for mode() #181

Closed
matago opened this issue Jun 29, 2016 · 2 comments
Closed

Add dimension specification for mode() #181

matago opened this issue Jun 29, 2016 · 2 comments

Comments

@matago
Copy link

matago commented Jun 29, 2016

I am wondering if it would be possible to implement dimension specification for mode() in a similar fashion to mean() and sum(). mode(A,1) would provide column modes and mode(A,2) row modes across Array A

@nalimilan
Copy link
Member

Shouldn't be too hard, but I wonder whether we should go into that direction: then we'll eventually have to implement this for all reductions. Maybe we should keep this limited to sum and mean, and use reducedim(f, A, dims) for other operations?

@nilshg
Copy link

nilshg commented Mar 28, 2023

Would this be covered by #77 and thus the fact that we now have eachslice?

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

No branches or pull requests

3 participants