Discussion: new operators for numerical computation

Tim Hochberg tim.hochberg at ieee.org
Thu Jul 20 12:52:12 EDT 2000


Gregory Lielens <gregory.lielens at fft.be> writes:

> Tim Hochberg wrote:
[...]
> I like the parethese a lot! except for ° which is probably out of
> question, 
> this is the prettier way to do it, but (alwas a but :-( )
> 
> - the solve operator indeed...The only thing i can come with is the ugly
> (%)
>   or the pretty but out-of-question (\)

My favorite right now is |. So one would have:

A[*]B    # matouter
A(*)B    # matinner
A(/)B    # matdiv
A(|)B    # matsolve
A(^)B	 # matpower

Alternatively, one could use:

A(*)B   # matouter
A(.)B   # matinner (AKA dot, get it?)

That would cut down on the available symbols, but might make parsing
easier? It might also be easier to distinguish between the two
products.

I've left out other potential outer operators (outer sum, etc) and
alternate inner products (Lie, Kroneker, ?) pending finding a
constituency for them.

[snip grammar issues and how to choose inner product axes]

-tim





More information about the Python-list mailing list