public class BooleanReduceVertex extends BooleanVertex implements NonProbabilistic<BooleanTensor>, NonSaveableVertex
Constructor and Description |
---|
BooleanReduceVertex(long[] shape,
java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> f,
Vertex<BooleanTensor>... input) |
BooleanReduceVertex(long[] shape,
java.util.Collection<? extends Vertex<BooleanTensor>> input,
java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> reduceFunction) |
Modifier and Type | Method and Description |
---|---|
BooleanTensor |
calculate() |
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
contradictsObservation
getObservedValue, isObserved, observe, unobserve
public BooleanReduceVertex(long[] shape, java.util.Collection<? extends Vertex<BooleanTensor>> input, java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> reduceFunction)
public BooleanReduceVertex(long[] shape, java.util.function.BiFunction<BooleanTensor,BooleanTensor,BooleanTensor> f, Vertex<BooleanTensor>... input)
public BooleanTensor calculate()
calculate
in interface NonProbabilistic<BooleanTensor>