[Numpy-discussion] Any easy way to do this?

Neal Becker ndbecker2@gmail....
Wed Mar 9 08:45:36 CST 2011


given: w[i,j,k], y[l, k]

find:
d[l,i,j] = norm(w[i,j] - y[l])

for each triple (l,i,j), w[i,j]-y[l] is a vector, of which I want to find the 
norm, and store into d[l,i,j]




More information about the NumPy-Discussion mailing list