[Numpy-discussion] Maturing the Matrix class in NumPy

Robert Kern robert.kern@gmail....
Fri Jun 5 16:28:40 CDT 2009


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


More information about the Numpy-discussion mailing list