Package org.tensorics.core.tensor.lang
Class OngoingStructuralReduction<C,E>
- java.lang.Object
-
- org.tensorics.core.tensor.lang.OngoingStructuralReduction<C,E>
-
- Type Parameters:
C
- the type of coordinate (aka 'the dimension') which is going to be reduced (by calling methods of this class)E
- the type of the elements of the tensor to be reduced.
- Direct Known Subclasses:
OngoingDimensionReduction
public class OngoingStructuralReduction<C,E> extends java.lang.Object
Part of the tensoric fluent API, which provides methods to specify concretely how a given dimension should be reduced.
-
-
Constructor Summary
Constructors Constructor Description OngoingStructuralReduction(Tensor<E> tensor, java.lang.Class<C> dimension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Tensor<R>
by(ReductionStrategy<? super C,E,R> strategy)
OngoingInterpolation<E,C>
byInterpolatedSlicingAt(C slicePosition)
Tensor<E>
bySlicingAt(C slicePosition)
protected <R> Tensor<R>
reduceBy(ReductionStrategy<? super C,E,R> strategy)
-
-
-
Method Detail
-
by
public <R> Tensor<R> by(ReductionStrategy<? super C,E,R> strategy)
-
byInterpolatedSlicingAt
public OngoingInterpolation<E,C> byInterpolatedSlicingAt(C slicePosition)
-
reduceBy
protected <R> Tensor<R> reduceBy(ReductionStrategy<? super C,E,R> strategy)
-
-