This is an automated email from the ASF dual-hosted git repository.
mboehm7 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new 2f2117c01f [SYSTEMDS-3785] Fix rewrite test for simplify bushy binary
ops, part 2
2f2117c01f is described below
commit 2f2117c01f774dacf58420553068fa819cd9e841
Author: Matthias Boehm <[email protected]>
AuthorDate: Thu Oct 24 20:37:17 2024 +0200
[SYSTEMDS-3785] Fix rewrite test for simplify bushy binary ops, part 2
---
.../scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.R | 4 ++--
.../scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.dml | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.R
b/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.R
index 0487e2892d..5a0e3475ca 100644
--- a/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.R
+++ b/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.R
@@ -40,9 +40,9 @@ type = as.integer(args[2])
# Perform the operations
if( type == 1 ) {
- R = (X*(Y*(Z%*%v)))
+ R = t(Z)%*%(X*(Y*(Z%*%v)))
} else if( type == 2 ) {
- R = (X+(Y+(Z%*%v)))
+ R = t(Z)%*%(X+(Y+(Z%*%v)))
}
writeMM(as(R, "CsparseMatrix"), paste(args[3], "R", sep=""))
diff --git
a/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.dml
b/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.dml
index 47257c7e69..3333ba28c4 100644
--- a/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.dml
+++ b/src/test/scripts/functions/rewrite/RewriteSimplifyBushyBinaryOperation.dml
@@ -31,10 +31,10 @@ type = $5
# Perform the operations
if( type == 1 ) {
- R = (X*(Y*(Z%*%v)))
+ R = t(Z)%*%(X*(Y*(Z%*%v)))
}
else if( type == 2 ) {
- R = (X+(Y+(Z%*%v)))
+ R = t(Z)%*%(X+(Y+(Z%*%v)))
}
# Write the result matrix R