W dniu 27.01.2017 o 18:03, Sven Schreiber pisze:
In principle one could argue that transp(m) and m[diag] are not that
different, in that they juggle around (some of) the elements of the
m[diag] = {3,
3} can be written as
loop i=1 to 2
m[i,i] = 3
endloop
end m[i,i] is correct lvalue (in C).
'transp(m) = sth.' is not correct lvalue and C compiler (gcc for
example) will tell you something like that: "lvalue required as left
operand of assignment".
Or in other words we can say that:
1. m[diag] is "m at sth." and this is lvalue.
2. transp(m) is "sth. of m" and this is not lvalue.
Marcin
left-hand side matrix.
I'm certainly not arguing that the other thing should work, I agree
hansl is totally OK in that respect.
cheers,
sven
_______________________________________________
Gretl-devel mailing list
Gretl-devel(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-devel
--
Marcin Błażejowski