XorSum opened a new pull request #1058:
URL: https://github.com/apache/systemds/pull/1058
Let't look at this demo:
```
h = matrix(1.0,rows = 3,cols=3)
a = matrix(2.0,rows = 3,cols=3)
s = matrix(3.0,rows = 3,cols=1)
s2 = s %*% t(s)
print("s="+toString(s2))
h2 = h %*% h %*% s2 %*% a %*% a
print("h="+toString(h2))
```
the output is correct
```
s=9.000 9.000 9.000
9.000 9.000 9.000
9.000 9.000 9.000
h=2916.000 2916.000 2916.000
2916.000 2916.000 2916.000
2916.000 2916.000 2916.000
```
however, if we comment the fifth line
```
h = matrix(1.0,rows = 3,cols=3)
a = matrix(2.0,rows = 3,cols=3)
s = matrix(3.0,rows = 3,cols=1)
s2 = s %*% t(s)
#print("s="+toString(s2))
h2 = h %*% h %*% s2 %*% a %*% a
print("h="+toString(h2))
```
then a bug occured
```
An Error Occured :
HopsException -- ERROR: ./demo.dml line 6, column 32 --
Hops::optimizeMMChain() : Matrix Dimension Mismatch: 1 != 3
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]