These are chat archives for numpy/numpy

30th
Jun 2017
Virgile Andreani
@Armavica
Jun 30 2017 15:28
Hello, do you know if I can efficiently create an array with successive iterations of a function on an initial value? I would like [x, f(x), f(f(x)), etc.]
A naive python + numpy implementation is orders of magnitude faster when compiled with numba, which makes me think that numpy itself could propose an efficient function for this purpose (if it does not already exist).