Skip to content

Commit a914c0d

Browse files
committed
[SYSTEMDS-3889] Fix new matrix-scalar rewrite test (missing cast)
This patch fixes issues of the test dml scripts in terms of missing casts from 1-x-1 matrices to scalars. Interestingly, the test ran fine in local environments because the parser validation runs differently, and subsequently these 1-x-1 matrices where automatically rewritten to scalars.
1 parent 4a48a68 commit a914c0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#
2020
#-------------------------------------------------------------
2121
A = read($1);
22-
a = read($2);
23-
b = read($3);
22+
a = as.scalar(read($2));
23+
b = as.scalar(read($3));
2424

2525
R = a - A - b;
2626

0 commit comments

Comments
 (0)