public abstract class BooleanBinaryOpVertex<A extends Tensor,B extends Tensor> extends BooleanVertex implements NonProbabilistic<BooleanTensor>
Modifier and Type | Field and Description |
---|---|
protected Vertex<A> |
a |
protected static java.lang.String |
A_NAME |
protected Vertex<B> |
b |
protected static java.lang.String |
B_NAME |
Constructor and Description |
---|
BooleanBinaryOpVertex(long[] shape,
Vertex<A> a,
Vertex<B> b) |
BooleanBinaryOpVertex(Vertex<A> a,
Vertex<B> b) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
calculate() |
boolean |
contradictsObservation() |
Vertex<A> |
getA() |
Vertex<B> |
getB() |
protected abstract BooleanTensor |
op(A l,
B r) |
and, and, and, assertTrue, assertTrue, concat, equalTo, getValue, loadValue, not, not, notEqualTo, observe, observe, or, or, or, reshape, saveValue, setAndCascade, setAndCascade, setValue, setValue, slice, take
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
getObservedValue, isObserved, observe, unobserve
protected static final java.lang.String A_NAME
protected static final java.lang.String B_NAME
public boolean contradictsObservation()
contradictsObservation
in interface NonProbabilistic<BooleanTensor>
public BooleanTensor calculate()
calculate
in interface NonProbabilistic<BooleanTensor>
protected abstract BooleanTensor op(A l, B r)