Hi all,
In 2020a-git build date 2020-01-1 (i haven't test in other versions)

Function isnan() returns -1 instead of 1 as the help says  "... Given a matrix argument, returns a matrix of the same dimensions with 1s in positions where the corresponding element of the input is NaN and 0s elsewhere"

Also shouldn't it be in the help "...of the input is NA and 0s elsewhere" since other 'text' inputs for not-a-number or not-available are not understood by gretl, e.g.set  below, Z[3,3]=nan or NAN or NaN
but still, if you set Z[3,3]=0/0 it evals Z[3,3]=nan which is then understood by gretl isnan() which returns -1.


<hansl>
Z = ones(5,5)
Z[3,3]=NA

eval isnan(Z)
eval !ok(Z)

eval sumc(sumr(isnan(Z)))
eval sumc(sumr(!ok(Z)))

Z[3,]=NA
eval isnan(Z)
 </hansl>  

Thanks
Yiannis