On Fri, Jun 2, 2023 at 1:51 PM Ronald van Elburg <r.a.j.van.elb...@hetnet.nl>
wrote:

> Aha, the unnecessary copy mentioned in the
> https://dbs.ifi.uni-heidelberg.de/files/Team/eschubert/publications/SSDBM18-covariance-authorcopy.pdf.
> paper is a copy of the input. Here it is about discarding a valuable output
> (the mean) and then calculating that result separately.
>
> Not throwing the mean away saves about 20% computation time. Or phrased
> differently the calculation of the variance spends about a 25% of the
> computation time on calculating the mean.
>

I'm not sure I find that a compelling benefit for introducing dedicated
functions. The work on moving the implementation to C showed >2x speedups (
https://github.com/numpy/numpy/issues/13199#issuecomment-478305730). Is
there a reason for not trying to get that much larger gain merged first or
instead?

Cheers,
Ralf
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to