fnx2 = lambda x: NP.sum(fnx1(x))
M = NP.random.randint(10, 99, 40).reshape(8, 5)
ndx = NP.where(NP.sum(M, 0) % 2 == 0)
res = NP.apply_along_axis(fnx2, 1, M[ndx,])
print(res)
Векторизация цикла for в numpy/scipy?