[Numpy-discussion] Functions vs Methods
Jaidev Deshpande
deshpande.jaidev at gmail.com
Wed Dec 28 01:39:45 EST 2011
Hi
It is said that function calls are expensive. Does that mean one must
use available methods instead?
Eg. x is a NumPy array, and I need its transpose
Should I use
>>> x.T
or
>>> numpy.transpose(T) ?
Does it matter which one I'm using ? If not, under what conditions
does it become important to think about this distinction?
Thanks
More information about the NumPy-Discussion
mailing list