public abstract class DoubleBinaryOpVertex extends DoubleVertex implements NonProbabilistic<DoubleTensor>
Modifier and Type | Field and Description |
---|---|
protected DoubleVertex |
left |
protected static java.lang.String |
LEFT_NAME |
protected DoubleVertex |
right |
protected static java.lang.String |
RIGHT_NAME |
Constructor and Description |
---|
DoubleBinaryOpVertex(DoubleVertex left,
DoubleVertex right)
A vertex that performs a user defined operation on two vertices
|
DoubleBinaryOpVertex(long[] shape,
DoubleVertex left,
DoubleVertex right)
A vertex that performs a user defined operation on two vertices
|
Modifier and Type | Method and Description |
---|---|
DoubleTensor |
calculate() |
DoubleVertex |
getLeft() |
DoubleVertex |
getRight() |
protected abstract DoubleTensor |
op(DoubleTensor l,
DoubleTensor r) |
abs, acos, asin, atan, atan2, ceil, concat, cos, div, div, divideBy, divideBy, equalTo, exp, floor, getValue, greaterThan, greaterThanOrEqualTo, lambda, lambda, lessThan, lessThanOrEqualTo, loadValue, log, logGamma, matrixDeterminant, matrixInverse, matrixMultiply, max, min, minus, minus, multiply, multiply, notEqualTo, observe, observe, permute, plus, plus, pow, pow, reshape, reverseDiv, reverseMinus, round, saveValue, setAndCascade, setAndCascade, setValue, setValue, setWithMask, setWithMask, sigmoid, sin, slice, sum, sum, take, tan, times, times, toGreaterThanMask, toGreaterThanMask, toGreaterThanOrEqualToMask, toGreaterThanOrEqualToMask, toInteger, toLessThanMask, toLessThanMask, toLessThanOrEqualToMask, toLessThanOrEqualToMask, transpose, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getDegree, getId, getIndentation, getLabel, getObservedValue, getParents, getRank, getReference, getShape, getState, getValue, hashCode, hasValue, isDifferentiable, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, print, print, removeLabel, save, setAndCascade, setLabel, setLabel, setParents, setParents, setState, setValue, toString, unobserve
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contradictsObservation
getObservedValue, isObserved, observe, unobserve
protected final DoubleVertex left
protected final DoubleVertex right
protected static final java.lang.String LEFT_NAME
protected static final java.lang.String RIGHT_NAME
public DoubleBinaryOpVertex(DoubleVertex left, DoubleVertex right)
left
- a vertexright
- a vertexpublic DoubleBinaryOpVertex(long[] shape, DoubleVertex left, DoubleVertex right)
shape
- the shape of the resulting vertexleft
- a vertexright
- a vertexpublic DoubleTensor calculate()
calculate
in interface NonProbabilistic<DoubleTensor>
public DoubleVertex getLeft()
public DoubleVertex getRight()
protected abstract DoubleTensor op(DoubleTensor l, DoubleTensor r)