Hi,
I have a question concerning the mshape and isscalar functions:
The second and third argument are scalars but when I tried to use
different inputs for these arguments stored in a matrix
GRETL flags an error. This is not the case with similar functions like
'zeros'.
The function 'isscalar' seems to be broken (and is only named on p. 148
in the Command Reference).
<hansl>
nulldata 24
matrix FaktorA={1;1;1;1;1;1;2;2;2;2;2;2;3;3;3;3;3;3;4;4;4;4;4;4}
matrix k={3;4}
eval mshape(FaktorA,3,4)
eval mshape(FaktorA,k[1],k[2]) #error caused by matrix k[]
eval zeros(k[1],k[2]) #here is works fine
scalar test=10
eval isscalar("10") #=0
eval isscalar(10) #error
eval isscalar(test) #error
<hansl>
Best
Leon