From: Bruce S. <bas...@un...> - 2002-06-23 19:02:46
|
Sounds like a useful idea. I'll put this on a to-do list. Thanks! Bruce Sherwood At 05:00 PM 02/06/22 -0400, Arthur Siegel wrote: >I am refactoring some code, focusing on performance >issues. > >And find it quite common in my code to be calculating the squared >length of a vector. > >A look at cvisual finds mag2() already there as the underlying function >for mag(), but it is not exposed to Python. > >So in doing mag(vector)**2 I am essentially calculating a >square root(in C) and then squaring it (in Python). Unpretty. > >I did the trivial work to expose mag2 as a Python function, and >am using it, and hoping the change could be made in the "official" >distribution > >Art > > > >------------------------------------------------------- >Sponsored by: >ThinkGeek at http://www.ThinkGeek.com/ >_______________________________________________ >Visualpython-users mailing list >Vis...@li... >https://lists.sourceforge.net/lists/listinfo/visualpython-users |