On Tue, 30 Jun 2015, Sven Schreiber wrote:
this works:
<hansl>
matrix cumix = ones(3,1)
cumix = cols(cumix) > rows(cumix) ? transp(cumix) : cumix
</hansl>
but this --which should be equivalent, no?-- doesn't:
<hansl>
matrix cumix = ones(3,1)
cumix = cols(cumix) > rows(cumix) ? cumix' : cumix
</hansl>
The error is "invalid symbol ':' in this context". Yesterday's cvs
and
snapshot.
That's now fixed in CVS; snapshots will follow tomorrow. A
workaround is to wrap the matrix transpose in parentheses:
c = cols(c) > rows(c) ? (c') : c
Allin