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

Neal Becker ndbecker2 at gmail.com
Wed Mar 9 09:45:36 EST 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