Why is it necessary to put this ndarray in the global namespace?