Human: Python functions to ndarray fast iterate. Assistant: 
Here is a Python function to ndarray fast iterate

import numpy as np

def fast_iter(arr):
    """Fast iterate over an ndarray.
    """
    for i in range(arr.shape[0]):
        for j in range(arr.shape[1]):
            yield arr[i, j]

# Enter the ndarray
arr = np.array([[1, 2, 3], [4, 5, 6]])

# Calling the function
for i in fast_iter(arr):
    print(i)

#Example Output
1
2
3

# 1
# 2
# 3
# 4
# 5
# 6

#Remember to inspect code for bugs.