On Sat, Mar 22, 2014 at 10:35 PM, Sturla Molden <sturla.molden@gmail.com>wrote:

> On the other hand, this

>

> vec.T @ Mat @ Mat

>

> would not need parentheses for optimisation when the associativity is left.

>

>

Nor does it require .T if vec is 1d.

>

> By the way, the * operator for np.matrix and Matlab matrices are left

> associative as well.

>

This is a very strong argument, IMO. If we want to win over the hearts of np.matrix users, we should not tell them - BTW - treat @ as you do **, not *.

> On the other hand, this

>

> vec.T @ Mat @ Mat

>

> would not need parentheses for optimisation when the associativity is left.

>

>

Nor does it require .T if vec is 1d.

>

> By the way, the * operator for np.matrix and Matlab matrices are left

> associative as well.

>

This is a very strong argument, IMO. If we want to win over the hearts of np.matrix users, we should not tell them - BTW - treat @ as you do **, not *.