Maybe it is trivial, but I was wondering how to write signatures in the jit
decorator when there are several outputs.
For instance :
import numba as nb
@nb.jit(['???(int32, int32, float(:,:), float(:,:))'], nopython=True)
def foo(nx, ny, a, b):
for i in range(nx):
for i in range(ny):
do stuff with a & b
return a, b
What about the performances ? Is it better to write two different functions ?