[Numpy-discussion] Maturing the Matrix class in NumPy

Chris Colbert sccolbert at gmail.com
Fri Jun 5 17:41:54 EDT 2009


well, it sounded like a good idea.

Oh, well.




On Fri, Jun 5, 2009 at 5:28 PM, Robert Kern <robert.kern at gmail.com> wrote:

> On Fri, Jun 5, 2009 at 16:24, Chris Colbert <sccolbert at gmail.com> wrote:
> > How about just introducing a slightly different syntax which tells numpy
> to
> > handle the array like a matrix:
> >
> > Some thing along the lines of this:
> >
> > A = array[[..]]
> > B = array[[..]]
> >
> > elementwise multipication (as it currently is):
> >
> > C = A * B
> >
> > matrix multiplication:
> >
> > C = {A} * {B}
> >
> > or
> >
> > C = [A] * [B]
> >
> > or any other brace we decide on
> >
> > Essentially, the brace tells numpy to handle the array objects like
> > matrices, but with no need for a specific matrix type.
>
> We don't control the Python language. We cannot make these kinds of
> changes to the syntax.
>
> --
> 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
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090605/25b5fd57/attachment.html>


More information about the NumPy-Discussion mailing list