Am 06.05.2021 um 13:02 schrieb Allin Cottrell:
On Thu, 6 May 2021, Sven Schreiber wrote:
Am 06.05.2021 um 10:05 schrieb Sven Schreiber:
Right, but I'm wondering whether this isn't inefficient because the ok
values are overwritten with themselves. Or aren't they internally?
BTW, shouldn't this work?
<hansl>
matrix m = {1, NA}
eval misszero(m[2])
</hansl>
I'm getting an error "is matrix not series", but m[2] should -I believe-
be auto-converted to scalar type here.
Actually no. The policy for some time now has been that a 1x1 submatrix
remains a matrix in the course of calculation, and is auto-converted to
a scalar only on assignment. This seemed to be the way to minimize
unexpected results.
OK. What does work then is a workaround like misszero(min(m[2])). (BTW,
it is undocumented that min and max work on a matrix.)
thanks
sven
_______________________________________________
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website:
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/