[Numpy-discussion] mean_std function returning both mean and std

2023-06-01 Thread Ronald van Elburg
I created a solution for ENH: Computing std/var and mean at the same time, issue #23741. The solution can be found here: https://github.com/soundappraisal/numpy/tree/stdmean-dev-001 I still need to add tests and the solution does touch the implementation of var. But before starting a pull req

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-01 Thread Jerome Kieffer
On Wed, 31 May 2023 19:15:12 - "Ronald van Elburg" wrote: > I created a solution for ENH: Computing std/var and mean at the same time, > issue #23741. The solution can be found here: > https://github.com/soundappraisal/numpy/tree/stdmean-dev-001 I like the idea ... so often one calculate

[Numpy-discussion] Re: mean_std function returning both mean and std

2023-06-01 Thread Ronald van Elburg
Steps to make this complete: - move resize of the mean array out of _mean_var and into the calling mean_std function (to reduce the impact of the code changes on existing functions) - establish whether numpy/core/_add_newdocs.py needs to be updated (What is the function of this file?)