[Numpy-discussion] Maturing the Matrix class in NumPy

Chris Colbert sccolbert@gmail....
Fri Jun 5 16:41:54 CDT 2009


well, it sounded like a good idea.

Oh, well.




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

> On Fri, Jun 5, 2009 at 16:24, Chris Colbert <sccolbert@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@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20090605/25b5fd57/attachment.html 


More information about the Numpy-discussion mailing list