{1:1:-1}
1
-matrix.sps:12: error: MATRIX: The increment operand to : must be nonzero.
+matrix.sps:15: error: MATRIX: The increment operand to : must be nonzero.
-matrix.sps:13: error: MATRIX: The increment operand to : must be nonzero.
+matrix.sps:16: error: MATRIX: The increment operand to : must be nonzero.
-matrix.sps:15: error: MATRIX: All rows in a matrix must have the same number of
+matrix.sps:18: error: MATRIX: All rows in a matrix must have the same number of
columns, but this tries to stack matrices with 2 and 1 columns.
-matrix.sps:16: error: MATRIX: All columns in a matrix must have the same number
+matrix.sps:19: error: MATRIX: All columns in a matrix must have the same number
of rows, but this tries to paste matrices with 2 and 1 rows.
])
AT_CLEANUP
1.00 3.00
matrix.sps:22: error: MATRIX: GSCH requires its argument to have at least as
-many columns as rows, but it has dimensions (2,1).
+many columns as rows, but it has dimensions 2×1.
matrix.sps:23: error: MATRIX: 2×3 argument to GSCH contains only 0 linearly
independent columns.
LN({1, 2; 3, 4})
.00 .69
1.10 1.39
+
+LN(0)
+ -In
])
AT_CLEANUP
-1.00
matrix.sps:10: error: MATRIX: SOLVE requires its arguments to have the same
-number of rows, but the first argument has dimensions (2,2) and the second
-(1,2).
+number of rows, but the first argument has dimensions 2×2 and the second 1×2.
SQRT({0, 1, 2, 3, 4, 9, 81})
.00 1.00 1.41 1.73 2.00 3.00 9.00
0 0 6 2
12 0 2 28
+SWEEP(s2, 1)
+ 0 0 0
+ 0 4 5
+ 0 7 8
+
+SWEEP(s2, 2)
+ -.7500000000 -.2500000000 .7500000000
+ .7500000000 .2500000000 1.2500000000
+ .7500000000 -1.7500000000 -.7500000000
+
+SWEEP(s2, 3)
+ -1.5000000000 -.7500000000 -.2500000000
+ -.7500000000 -.3750000000 -.6250000000
+ .7500000000 .8750000000 .1250000000
+
TRACE(s0)
68
AT_SETUP([MATRIX - READ])
AT_DATA([matrix.txt], [dnl
+9
+8
+7
+6
1 2 3
4 5 6
7 8 9
])
AT_DATA([matrix.sps], [dnl
MATRIX.
+READ x/FILE='matrix.txt'/SIZE=4/FIELD=1 TO 1.
+PRINT x.
READ x/FILE='matrix.txt'/SIZE={3,3}/FIELD=1 TO 80.
PRINT x.
READ x/SIZE={2,4}/FIELD=1 TO 80.
END MATRIX.
])
AT_CHECK([pspp matrix.sps], [0], [dnl
+x
+ 9
+ 8
+ 7
+ 6
+
x
1 2 3
4 5 6