"""
helper class, uses a numpy array to provide a circular fixed size fifo
interface.
put(element): removes the oldest element and
places a new one
get(): returns the oldest entry
empty(): returns true if fifo is empty
full():  returns true if fifo is full
"""

def __init__(self, size):
    self.array = np.empty(shape=(size, 2))
self.size = size
self.array[:] = np.NAN
Какова временная сложность прямого индексирования массива numpy