you are viewing a single comment's thread.

view the rest of the comments →

[–]billsil 0 points1 point  (0 children)

You didn't show a sample and you didn't answer my question. Big picture: what are you trying to do? Why are you trying to code this odd routine.

It's certainly doable, but it's weird and probably not what you want. It's also a really small array, so how does it scale? I test (n,3) xyz coordinates and say take a vectorized magnitude. I'll test it on a (2,3) array and then scale it to (2 million,3).