Class TensorbackedSupport<S>
- java.lang.Object
-
- org.tensorics.core.tensorbacked.lang.TensorbackedSupport<S>
-
- Type Parameters:
S
- the type of the scalar values (elements of the field on which all the operations are based on)
public class TensorbackedSupport<S> extends java.lang.Object
Part of the tensorics fluent API that provides starting point methods for eDSL clauses that deal with calculations and manipulations of tensor backed objects.
-
-
Constructor Summary
Constructors Constructor Description TensorbackedSupport(Environment<S> environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <TB extends Tensorbacked<S>>
OngoingTensorBackedOperation<TB,S>calculate(TB left)
Allows to perform calculation on given tensor backed.<TB extends Tensorbacked<S>>
TBnegativeOf(TB tensorBacked)
Constructs a tensor backed objet of the same type as the input parameter, containing the negative values of the original one.
-
-
-
Constructor Detail
-
TensorbackedSupport
public TensorbackedSupport(Environment<S> environment)
-
-
Method Detail
-
negativeOf
public <TB extends Tensorbacked<S>> TB negativeOf(TB tensorBacked)
Constructs a tensor backed objet of the same type as the input parameter, containing the negative values of the original one.- Parameters:
tensorBacked
- to use- Returns:
- a tensor backed object of the same type, containing the negative values of the input object
-
calculate
public final <TB extends Tensorbacked<S>> OngoingTensorBackedOperation<TB,S> calculate(TB left)
Allows to perform calculation on given tensor backed.- Parameters:
left
- to calculate with.- Returns:
- expression to calculate.
-
-