On 12/7/2012 1:52 PM, Summers, Peter wrote:
But your example holds true whether or not we write x'y or
x'*y
Absolutely. I was addressing only the issue of
how to handle a 1 x 1 matrix, not the core question.
I agree that many matrix programming languages special case
the 1x1 matrix. I guess it is convenient enough to introduce
the risk I illustrated, at least in the opinion of some.
Not in mine.
I also have an opinion the topic question (explicit is better than implicit),
but not a strong one. One thing is for sure, x'*y needs to be legal.
The question is whether x'y is a legal "shorthand".
Cheers,
Alan