public class IntegerPluckVertex extends IntegerUnaryOpVertex
inputVertex
ID_GENERATOR
Constructor and Description |
---|
IntegerPluckVertex(IntegerVertex inputVertex,
int... index)
A vertex that extracts a scalar at a given index
|
Modifier and Type | Method and Description |
---|---|
protected IntegerTensor |
op(IntegerTensor a) |
getDerivedValue, sample
dLogPmf, isProbabilistic, logPmf, observe, updateValue
abs, div, div, divideBy, divideBy, divideBy, dLogPmf, dLogPmf, getValue, lambda, lambda, logPmf, logPmf, minus, minus, minus, multiply, multiply, multiply, observe, observe, pluck, plus, plus, plus, setAndCascade, setAndCascade, setValue, setValue, slice, sum, times, times, unaryMinus
dLogProb, logProb
addChild, addParent, addParents, dLogProbAtValue, equals, eval, getChildren, getConnectedGraph, getId, getParents, getRawValue, getShape, getValue, hashCode, hasValue, isObserved, lazyEval, logProbAtValue, observeOwnValue, sample, setAndCascade, setParents, setParents, setValue, unobserve
public IntegerPluckVertex(IntegerVertex inputVertex, int... index)
inputVertex
- the input vertex to extract fromindex
- the index to extract atprotected IntegerTensor op(IntegerTensor a)
op
in class IntegerUnaryOpVertex