Hi,

I want to define a 3-D array as the sum of two 2-D arrays as follows:

   C[x,y,z] := A[x,y] + B[x,z]

My linear algebra is a bit rusty; is there a good way to do this that does not
require me to loop over x,y,z? Thanks!

Jonathan

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to