public abstract class IntegerBinaryOpVertex extends IntegerVertex
Modifier and Type | Field and Description |
---|---|
protected IntegerVertex |
a |
protected IntegerVertex |
b |
ID_GENERATOR
Constructor and Description |
---|
IntegerBinaryOpVertex(int[] shape,
IntegerVertex a,
IntegerVertex b) |
Modifier and Type | Method and Description |
---|---|
protected abstract IntegerTensor |
op(IntegerTensor a,
IntegerTensor b) |
IntegerTensor |
sample(KeanuRandom random) |
abs, div, div, divideBy, divideBy, divideBy, getValue, lambda, lambda, minus, minus, minus, multiply, multiply, multiply, observe, observe, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, slice, sum, take, times, times, unaryMinus
addChild, addParent, addParents, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, isProbabilistic, lazyEval, observe, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve, updateValue
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
observableTypeFor
protected final IntegerVertex a
protected final IntegerVertex b
public IntegerBinaryOpVertex(int[] shape, IntegerVertex a, IntegerVertex b)
public IntegerTensor sample(KeanuRandom random)
sample
in class Vertex<IntegerTensor>
random
- source of randomnessprotected abstract IntegerTensor op(IntegerTensor a, IntegerTensor b)