My particular use case was computing cumulative returns in the context of
reinforcement learning.
A GitHub code search suggests that reverse cumsum is a fairly common operation,
with 3.8k hits:
https://github.com/search?q=%2Fcumsum%5C%28.*%5C%5B%3A%3A-1%5C%5D%5C%29%5C%5B%3A%3A-1%5C%5D%2F&type=c
On Sun, 2025-06-08 at 00:40 +, Carlos Martin wrote:
> Add a reverse argument to accumulating functions that, when true,
> causes the accumulation to be performed in reverse. Examples:
Can you describe use cases? Without that, I am not sure I find the
flip solution terrible enough for a very
=
Announcing NumExpr 2.11.0
=
Hi everyone,
NumExpr 2.11.0 Initial support for free-threaded Python 3.13t has been
added.
This is still experimental, so please report any issues you find.
Finally, Python 3.10 is now the minimum supported version.
Pr
Hello,
I discovered the horror below. Do we really want silent data type casting in
this case?
from numpy import *
x = array([0])
x[0] = 1.7# Silent data type casting
print(x)# Prints [1] instead of [1.7]
Olivier
___
NumPy-Discussion maili