[SciPy-dev] draft: NumPy User Guide introduction
David Goldsmith
d_l_goldsmith@yahoo....
Tue Aug 25 10:52:32 CDT 2009
--- On Tue, 8/25/09, Alan G Isaac <aisaac@american.edu> wrote:
> 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.
>
> Alan Isaac
Submit a patch, see if it gets accepted:
def dot(a2):
if self.shape == a2.T.shape:
return np.dot(self, a2)
else:
return self # (or whatever else is thought logical)
DG
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Scipy-dev
mailing list