Commit 1e86da3
committed
[SYSTEMDS-3806] Robustness simplifyDotProductSum rewrite
This patch fixes an issue of incorrect application of the
simplifyDotProductSum rewrite. Specifically, sum(s*V) was rewritten to
t(s) %*% V because s was assumed to be a vector of equal size than V
but was a scalar. The root cause of an incorrect size propagation for
the new scalar right indexing, but for robustness we now also check
that both inputs are actually matrices.1 parent 0743613 commit 1e86da3
File tree
3 files changed
+9
-2
lines changed- src
- main/java/org/apache/sysds/hops
- rewrite
- test/scripts/functions/unary/matrix
3 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
373 | 381 | | |
374 | 382 | | |
375 | 383 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2312 | 2312 | | |
2313 | 2313 | | |
2314 | 2314 | | |
| 2315 | + | |
2315 | 2316 | | |
2316 | 2317 | | |
2317 | 2318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
0 commit comments