On Mon, 23 Apr 2012 12:56:19 -0400, Anton Loukianov <anton.loukianov(a)gmail.com> wrote:
> I am trying to write a Euclidean distance function that takes two
> numpy arrays. In trying to vectorize it from 2 to 3 dimensional
> arrays, I ran into a bug that I can't seem to figure out. I would
> appreciate any help.
In 3D, you only write to z[i] and don't take j into account in your j
index at all.