On 6/9/07, Nikos Apostolakis <nikos.ap at gmail.com> wrote:
> So its not clear (at least to me) when the result will be a number
> and when it will be a matrix. This is not just idle curiosity, I
> spent quite some time trying to figure out what was wrong with my
> calculations, I had defined a procedure to get some matrices which
> in some cases were 1 x 1 :(
>
> Is this a bug or a feature?
Well, it is a feature. ? scalarmatrixp tells about it.
We might consider making the default value of scalarmatrixp
equal to false (at present it is true).
I think simplifying 1-element matrices to scalars is too often
a bad surprise.
HTH
Robert