APISonar


org.apache.sysml.hops.codegen.cplan.CNodeUnary.UnaryType.LOG

> org > apache > sysml > hops > codegen > cplan > CNodeUnary > UnaryType > LOG
org APIs apache APIs sysml APIs hops APIs codegen APIs cplan APIs CNodeUnary APIs UnaryType APIs LOG APIs

Example 1
public void testNotEqualUnaryNodes() {
		if(shouldSkipTest())
			return;
		CNode c0 = createCNodeData(DataType.MATRIX);
		CNode c1 = new CNodeUnary(c0, UnaryType.EXP);
		CNode c2 = new CNodeUnary(c0, UnaryType.LOG);
		assertNotEquals(c1, c2);
	}
Example 2
public static boolean hasSingleOperation(CNodeTpl tpl) {
		CNode output = tpl.getOutput();
		return ((output instanceof CNodeUnary 
				&& !TemplateUtils.isUnary(output, 
					UnaryType.EXP, UnaryType.LOG, UnaryType.ROW_COUNTNNZS)) 
			|| (output instanceof CNodeBinary
				&& !TemplateUtils.isBinary(output, BinType.VECT_OUTERMULT_ADD))
			|| output instanceof CNodeTernary 
				&& ((CNodeTernary)output).getType() == TernaryType.IFELSE)
			&& hasOnlyDataNodeOrLookupInputs(output);
	}