On Fri, 23 May 2008, Allin Cottrell wrote:
Oof, this is to do with a change I introduced at Stefano's
behest: not "casting" 1x1 matrix results to scalars automatically.
I'll have to think about that some more.
I can see Stefano's point, but there are also advantages in auto-casting a
1x1 matrix to a scalar. By the way (Stefano, are you there?) if you really
need to ensure that the result of an operation is a matrix, you can always
force it via the "matrix" alias, as in
matrix x = foo(z)
So, in my view, there are pros and cons to either choice. I think we ought
to reach a collective decision here. So my proposal is: everyone
interested, please have your say now. (Myself, I'd say "auto-cast".)
Allin, just wait for a few days and then whatever you decide is the law.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti