[Numpy-discussion] Applying a function on local environments

2024-07-26 Thread langthom
Dear all, my goal would be to apply some function on a local environment of size K x K x K where K is bigger than 1 and odd. For example, if K = 3, it would be nice to apply some function "func" on such an environment around each n-dimensional position within the n-dimensional array. So, for K

[Numpy-discussion] Re: Applying a function on local environments

2024-07-27 Thread langthom
Dear Dom, Robert, and Juan, thanks for your quick responses! I will take a look primarily at generic_filter and/or the numba accelerated version for a try! Best regards, Thomas ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubsc