I am modifying cython code that makes plots of complex-valued functions. This code includes something equivalent to the following:
cimport numpy as cnumpy
def do_something():
# Buffer types only allowed as function local variables, so put
# this inside a function.
cdef cnumpy.ndarray[cnumpy.float_t, ndim=3, mode='c'] rgb
pass
What does the mode='c'
kwarg do? I don't see this as an option on the numpy.ndarray documentation (or anywhere else in the numpy documentation), or mentioned in the cython for numpy users documentation/tutorial, or mentioned in cython's working with numpy documentation/tutorial.
I am not fluent in cython, but I do know python and C. I see from other questions here that this is not a rare argument, but I can't find documentation or explanation for what this does.