Multiply high order matrices with numpy,"np.einsum('ijk,ij->ik', ind, dist)"