Ang. Re: [Gretl-devel] Bugs, missing features and a suggestion
andreas.rosenblad at ltv.se
andreas.rosenblad at ltv.se
Tue Sep 25 08:31:09 EDT 2007
svetosch at gmx.net @ INTERNET skrev 2007-09-25 14:02:40 :
> andreas.rosenblad at ltv.se schrieb:
>
> >
> > If it is a missing feature, please do implement it, so that the the
> > combined expression X = 1 & Y = 2 can be used for matrices
>
> I'm not against that feature, but note that you can do for example
> ((x=1).*(y=2) = 1), or ((x=1)+(y=2) = 2).
Yes, but it is more cumbersome and less intuitive. Especially since X = 1 &
Y = 2 is allowed for scalars and data series, it should also be allowed for
matrices.
> > A second bug or missing feature: I want to initiate a matrix with
missing
> > values, where some cells with missing values will later be replaced
with
> > non-missing values. I got the following result when trying to initiate
a
> > matrix with missing values:
> >
> > ? A = {NA, NA; NA, NA}
> > Generated matrix A
> > ? A
> > A (2 x 2)
> >
> > 1.7977e+308 1.7977e+308
> > 1.7977e+308 1.7977e+308
>
> This may actually be correct, according to floating point representation
> of NAs (not 100% sure out of my head). Maybe it should be printed
> differently, however.
I think it would be better if it was printed
NA NA
NA NA
> > For example, I use
> >
> > if sum(foo-int(foo))=0
> > discrete foo
> > endif
>
> I don't understand; for example how would a discrete series with 0.5,
> -0.5, 0.5, .... turn out as discrete with your formula?
You are absolutely right. My fault. I am only using discrete series with
positive integers, and for these my formula works.
Andreas
More information about the Gretl-devel
mailing list