What is the difference between
array in Numpy? And where can I find the implementations in the numpy source code?
np.array is just a convenience function to create an
ndarray, it is not a class itself.
You can also create an array using
np.ndarray, but it is not the recommended way. From the docstring of
Arrays should be constructed using
empty... The parameters given here refer to a low-level method (
ndarray(...)) for instantiating an array.
Most of the meat of the implementation is in C code, here in multiarray, but you can start looking at the ndarray interfaces here: