You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by mb...@apache.org on 2016/01/27 22:54:34 UTC
[2/3] incubator-systemml git commit: Fix spark matrix-scalar builtin
instructions log/log_nz (opcode checks)
Fix spark matrix-scalar builtin instructions log/log_nz (opcode checks)
Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/ad3fa90e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/ad3fa90e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/ad3fa90e
Branch: refs/heads/master
Commit: ad3fa90e925f58c961e67016516f0ad41800d5aa
Parents: 6269751
Author: Matthias Boehm <mb...@us.ibm.com>
Authored: Tue Jan 26 18:08:49 2016 -0800
Committer: Matthias Boehm <mb...@us.ibm.com>
Committed: Wed Jan 27 13:53:41 2016 -0800
----------------------------------------------------------------------
.../instructions/spark/MatrixScalarBuiltinSPInstruction.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/ad3fa90e/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixScalarBuiltinSPInstruction.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixScalarBuiltinSPInstruction.java b/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixScalarBuiltinSPInstruction.java
index a16a779..195e96c 100644
--- a/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixScalarBuiltinSPInstruction.java
+++ b/src/main/java/org/apache/sysml/runtime/instructions/spark/MatrixScalarBuiltinSPInstruction.java
@@ -39,8 +39,8 @@ public class MatrixScalarBuiltinSPInstruction extends BuiltinBinarySPInstruction
{
//sanity check opcode
String opcode = getOpcode();
- if ( !(opcode.equalsIgnoreCase("max") || opcode.equalsIgnoreCase("min"))
- ||opcode.equalsIgnoreCase("log") || opcode.equalsIgnoreCase("log_nz") )
+ if (!(opcode.equalsIgnoreCase("max") || opcode.equalsIgnoreCase("min")
+ ||opcode.equalsIgnoreCase("log") || opcode.equalsIgnoreCase("log_nz")) )
{
throw new DMLRuntimeException("Unknown opcode in instruction: " + opcode);
}