[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Need Help with Distance Algorithm in Numeric
Kamilche <klachemin@xxxxxxxxxxx>:
>
> Oh my, that's subtle. Thanks for finding that! :-)
Heh. The two are rather different. The Numeric/nummarray sum() sums
along one dimension, and therefore leaves you with an array that is
collapsed along that dimension. The built-in sum() just gives you the
total sum (a single number), which doesn't do much good here.
--
Magnus Lie Hetland Fall seven times, stand up eight
http://hetland.org [Japanese proverb]