On Sun, 25 Sep 2011, Allin Cottrell wrote:
A question came up lately regarding addition (or subtraction) of
an m x n matrix and a 1 x 1 matrix. The manual said that this was
permitted (with the 1 x 1 matrix being treated as a scalar, and
added to each element of the m x n one). But in fact it was
supported only if the m x n matrix was on the left; and I
responded to the report by enabling the case where the 1 x 1
matrix is on the left.
On more thought on this. Maybe I'm being irrational, but it seems to
me that the status quo ante was in a way more defensible than the
new, "more consistent" state of things.
Proper addition is of course commutative, but the "extended
addition" that I'm talking about here maybe is not. I tend to think
of the left-hand operand as the "posit", so to speak, and the
right-hand operand as the increment (or decrement, in the case of
subtraction). And I reckon I can attach a good sense to the case
where an m x n matrix is the posit and the increment or decrement is
a scalar (applied to all elements of the posit). But I feel queasy
about the case where the posit is a scalar value and the
increment/decrement is an m x n matrix. This seems a step too far.
This may become moot if we decide to tighten up and insist on the
dot operators, but I thought I'd just mention it.
Allin