On Wed, January 31, 2007 00:25, Allin Cottrell wrote:
It strikes me that logical OR as applied to matrices, is, while
potentially meaningful, quite arcane. I'd be surprised if there
are any gretl scripts in circulation that involve OR'ing matrices.
...
* ...with the exception that "A|B" in matrix-generating
expressions means vertical concatenation (and if you really want
to OR matrices you must use the new "||" form).
I'm not pushing this idea all that hard, just wondering. It
carries some potential for confusion. The main problem I see is
identifying a "matrix-generating expression" for the purpose of
interpreting "|". My notion is that this would be the right-hand
side of a "matrix M = ..." command, or the right-hand side of
commands on the pattern
genr M = ...
M = ...
Yes, this makes sense to me. The only thing is that we need to warn users
that
c = 2 | 1
will _not_ return a 2x1 vector, as one might expect, but
c = {2} | {1}
will.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Facoltà di Economia "G. Fuà"
Ancona
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Facoltà di Economia "G. Fuà"
Ancona