I was trying to check whether numba passes arguments by value or by reference, So I wrote this:
@numba.jit(nopython=True)
def f(x):
return id(x)
Which, when run, resulted in this:
TypingError: cannot determine Numba type of <class 'builtin_function_or_method'>
This totally makes sense (I know id is not necessarily the memory address, but that's what I had in mind). However:
How can I get the memory address of an argument within a jitted function?
Does numba pass arguments by value or by reference (and how can I verify this)?