numpy.org
How to extend NumPy — NumPy v1.15 Manual
All array creation functions go through this heavily re-used code. Because of its flexibility, it can be somewhat confusing to use.The function returns None and updates the output array. Note the updated use of WRITEBACKIFCOPY semantics for NumPy v1.14 and above.