Re: [SciPy-dev] Definition of class multiarray
OK, tried to figure it out myself, but: Do ndarray.<method>s which have an "equivalent" numpy.<method> actually call the numpy method to operate on self? DG --- On Fri, 6/26/09, Pauli Virtanen <pav@iki.fi> wrote:
From: Pauli Virtanen <pav@iki.fi> Subject: Re: [SciPy-dev] Definition of class multiarray To: scipy-dev@scipy.org Date: Friday, June 26, 2009, 11:13 AM On 2009-06-26, David Goldsmith <d_l_goldsmith@yahoo.com> wrote:
Hi. Where is class multiarray defined? Thanks!
There's no class named multiarray. numpy.core.multiarray is an extension module written in C, providing eg. the ndarray class.
You can find the sources under numpy/core/src
-- Pauli Virtanen
_______________________________________________ Scipy-dev mailing list Scipy-dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev
On Fri, Jun 26, 2009 at 13:45, David Goldsmith<d_l_goldsmith@yahoo.com> wrote:
OK, tried to figure it out myself, but:
Do ndarray.<method>s which have an "equivalent" numpy.<method> actually call the numpy method to operate on self?
Note that the latter are called functions, not methods. Where there is an equivalence, the function calls the method, not vice versa. Take a look at the source of numpy.std, for instance. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (2)
-
David Goldsmith -
Robert Kern