I am using numpy
in Cython
mostly by looking at examples on the net / SO:
cimport cython
import numpy as np
cimport numpy as np
from numpy cimport ndarray as ar
....
... = np.empty(...)
...
cdef ar[double, ndim=1, mode='c'] y = ....
...
... = np.argmax(...)
Suppose, now I make the change cimport numpy as np
to cimport numpy as cnp
. Then how do I know which functions (i.e. np.empty
, np.argmax
, etc.) in the code above rely on np
versus which functions rely on cnp
?