[Gretl-devel] Bug using print command in a loop?

andreas.rosenblad at ltv.se andreas.rosenblad at ltv.se
Tue Oct 16 06:19:07 EDT 2007

When running the following script in gretl (latest Windows snapshot on XP)

matrix A = {1,2,3;1,2,3}
print A
loop for i=1..3
      print A

I got the following result:

gretl version 1.6.6.pre2
Current session: 2007/10/16 12:14
? matrix A = {1,2,3;1,2,3}
Replaced matrix A
? print A
A (2 x 3)

  1   2   3
  1   2   3

? loop for i=1..3
> print A
> endloop
loop: i = 1

Command has insufficient arguments
>> print A

I.e., I can print a matrix from outside a loop, but not from inside a loop.

Is this a bug or am I doing something wrong?

Best regards

More information about the Gretl-devel mailing list