public abstract class BooleanBinaryOpVertex<A extends Tensor,B extends Tensor> extends BooleanVertex implements NonProbabilistic<BooleanTensor>, VertexBinaryOp<Vertex<A>,Vertex<B>>
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
A_NAME |
protected static java.lang.String |
B_NAME |
protected Vertex<A> |
left |
protected Vertex<B> |
right |
| Constructor and Description |
|---|
BooleanBinaryOpVertex(long[] shape,
Vertex<A> left,
Vertex<B> right) |
BooleanBinaryOpVertex(Vertex<A> left,
Vertex<B> right) |
| Modifier and Type | Method and Description |
|---|---|
BooleanTensor |
calculate() |
boolean |
contradictsObservation() |
Vertex<A> |
getLeft() |
Vertex<B> |
getRight() |
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, takeaddChild, 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, unobserveclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetObservedValue, isObserved, observe, unobserveprotected 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)