_f_array = numpy.array([[1, 4, 3], [2, 8, 6], [0, 7, 5]])

def f(a, b):
    return _f_array[a, b]

def f_row(a):
    return _f_array[(a), :]

def f_col(b):
    return _f_array[:, (b)]
Best data structure for 3D data?