numpy_implementation