[Numpy-discussion] Preventing an ndarray subclass from returning new subclass instances for std(), etc
Stéfan van der Walt
stefan@sun.ac...
Sun Sep 18 14:25:14 CDT 2011
On Sun, Sep 18, 2011 at 9:48 AM, Keith Hughitt <keith.hughitt@gmail.com> wrote:
> Interesting. It works as expected when called as a method:
>
> In [10]: x = np.ma.array([[1,2,3]])
> In [11]: x.std()
> Out[11]: 0.81649658092772603
I'm guessing that np.ma.array implements its own std function, but I
haven't checked.
Stéfan
More information about the NumPy-Discussion
mailing list