[Python] How can I, from a Numba jitted function, call another Numba jitted function with a...

Discussão em 'Python' iniciado por Stack, Setembro 30, 2024.

  1. Stack

    Stack Membro Participativo

    I have several Numba jitted functions f_i with the same signature. I want to dynamically call them from another jitted function g.

    I would like to :

    • store the pointers to the functions f_i in an Numpy array a
    • from g:
      • given an index i, retrieve from a the pointer to function f_i
      • dereference the pointer and call function f_i

    How can I do this ? Thank you

    I have some code that runs but only when JIT compilation is disabled.

    Continue reading...

Compartilhe esta Página