[SciPy-dev] draft: NumPy User Guide introduction
Alan G Isaac
Tue Aug 25 07:49:16 CDT 2009
On 8/25/2009 4:56 AM Dag Sverre Seljebotn apparently wrote:
> why exactly is it that
> is OK, while arr.sin(), arr.cos() or arr.dot(otherarr) is not?
> (It seems the rule is "array -> scalar" mappings are OK as method,
> others are not, but that seems arbitrary to me.)
I do not know the original justification,
but conceptually, the mean is a property
of the data in the array.
As a user, I'd actually like to see
`dot` implemented as a method so we
could do a1.dot(a2). This would make
a lot of code cleaner to read.
More information about the Scipy-dev