Search in sources :

Example 21 with CNodeUnary

use of org.apache.sysml.hops.codegen.cplan.CNodeUnary in project systemml by apache.

the class CPlanComparisonTest method testNotEqualUnaryNodes.

@Test
public void testNotEqualUnaryNodes() {
    CNode c0 = createCNodeData(DataType.MATRIX);
    CNode c1 = new CNodeUnary(c0, UnaryType.EXP);
    CNode c2 = new CNodeUnary(c0, UnaryType.LOG);
    Assert.assertNotEquals(c1, c2);
}
Also used : CNode(org.apache.sysml.hops.codegen.cplan.CNode) CNodeUnary(org.apache.sysml.hops.codegen.cplan.CNodeUnary) Test(org.junit.Test)

Aggregations

CNode (org.apache.sysml.hops.codegen.cplan.CNode)21 CNodeUnary (org.apache.sysml.hops.codegen.cplan.CNodeUnary)21 CNodeBinary (org.apache.sysml.hops.codegen.cplan.CNodeBinary)13 CNodeTernary (org.apache.sysml.hops.codegen.cplan.CNodeTernary)10 Hop (org.apache.sysml.hops.Hop)8 CNodeData (org.apache.sysml.hops.codegen.cplan.CNodeData)8 MemoTableEntry (org.apache.sysml.hops.codegen.template.CPlanMemoTable.MemoTableEntry)8 Test (org.junit.Test)8 AggBinaryOp (org.apache.sysml.hops.AggBinaryOp)6 AggUnaryOp (org.apache.sysml.hops.AggUnaryOp)6 BinaryOp (org.apache.sysml.hops.BinaryOp)6 UnaryOp (org.apache.sysml.hops.UnaryOp)6 IndexingOp (org.apache.sysml.hops.IndexingOp)4 LiteralOp (org.apache.sysml.hops.LiteralOp)4 ParameterizedBuiltinOp (org.apache.sysml.hops.ParameterizedBuiltinOp)4 TernaryOp (org.apache.sysml.hops.TernaryOp)4 TernaryType (org.apache.sysml.hops.codegen.cplan.CNodeTernary.TernaryType)4 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 HashSet (java.util.HashSet)2