C - the dimension (direction, type of coordinate) in which the tensor will be reducedE - the type of the elements of the tensorpublic class TensorReduction<C,E,R> extends java.lang.Object implements Conversion<Tensor<E>,Tensor<R>>
| Constructor and Description |
|---|
TensorReduction(java.lang.Class<? extends C> direction,
ReductionStrategy<? super C,E,R> strategy) |
| Modifier and Type | Method and Description |
|---|---|
Tensor<R> |
apply(Tensor<E> value)
Has to implement the conversion logic to convert the given object into an object of type R.
|
public TensorReduction(java.lang.Class<? extends C> direction, ReductionStrategy<? super C,E,R> strategy)
public Tensor<R> apply(Tensor<E> value)
Conversion