23, 29, 31, 37
41, 43, 47, 53
])
+AT_DATA([matrix3.txt], [dnl
+1 5
+3 1 2 3
+5 6 -1 2 5 1
+2 8 9
+3 1 3 2
+])
AT_DATA([matrix.sps], [dnl
MATRIX.
READ x/FILE='matrix.txt'/SIZE=4/FIELD=1 TO 1.
COMPUTE y={y; x}.
END LOOP.
PRINT y.
+
+COMPUTE m = MAKE(5, 5, 0).
+LOOP i = 1 TO 5.
+READ count /FILE='matrix3.txt' /FIELD=1 TO 1 /SIZE=1.
+READ m(i, 1:count) /FIELD=3 TO 100 /REREAD.
+END LOOP.
+PRINT m.
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [0], [dnl
11 13 17 19
23 29 31 37
41 43 47 53
+
+m
+ 5 0 0 0 0
+ 1 2 3 0 0
+ 6 -1 2 5 1
+ 8 9 0 0 0
+ 1 3 2 0 0
])
AT_CLEANUP