C - the type of coordinate (aka 'the dimension') do be reducedE - the type of the tensor elementspublic class Slicing<C,E> extends java.lang.Object implements ReductionStrategy<C,E,E>
| Modifier and Type | Field and Description |
|---|---|
protected C |
slicePosition |
| Modifier and Type | Method and Description |
|---|---|
Position |
context(Position originalContext) |
E |
reduce(java.util.Map<? extends C,E> inputValues,
Position position) |
protected final C slicePosition
public Slicing(C slicePosition)
public E reduce(java.util.Map<? extends C,E> inputValues, Position position)
reduce in interface ReductionStrategy<C,E,E>inputValues - the sub values of the tensor from which the reduction is performedposition - a remaining position in the tensor for which reduction is performed