matrix = np.array([i for i in range(24)]).reshape((6, 4))
RA, MD = mathDictMaker.fromMatrix(matrix, integer=True)
res = MD.map([(i,) for i in range(6)], sum_row, ordered=True)
print(res)
Parallelise python loop with numpy arrays and shared-memory