Class OngoingTensorBackedOperation<TB extends Tensorbacked<V>,V>
- java.lang.Object
-
- org.tensorics.core.tensorbacked.lang.OngoingTensorBackedOperation<TB,V>
-
- Type Parameters:
TB
-V
-
- All Implemented Interfaces:
OngoingOperation<TB,V>
public class OngoingTensorBackedOperation<TB extends Tensorbacked<V>,V> extends java.lang.Object implements OngoingOperation<TB,V>
Collects all fluent API elements for theTensorbacked
objects.
-
-
Constructor Summary
Constructors Constructor Description OngoingTensorBackedOperation(Environment<V> environment, TB left)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TB
elementDividedBy(TB right)
TB
elementDividedByV(V value)
TB
elementTimes(TB right)
Constructs a tensor backed object, of the same type as the input objects, which will contain elements which are the products of the respective elements of the input objects.TB
elementTimesV(V value)
TB
minus(TB right)
TB
minusT(Tensor<V> tensor)
TB
minusV(V right)
TB
plus(TB right)
Allows to sum twoTensorbacked
.TB
plusT(Tensor<V> tensor)
TB
plusV(V right)
-
-
-
Constructor Detail
-
OngoingTensorBackedOperation
public OngoingTensorBackedOperation(Environment<V> environment, TB left)
- Parameters:
environment
- the environment to useleft
- firstTensorbacked
to use
-
-
Method Detail
-
plus
public TB plus(TB right)
Allows to sum twoTensorbacked
.- Specified by:
plus
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
- Parameters:
right
- as tensor to add- Returns:
- result of summing two tensors
-
minus
public TB minus(TB right)
- Specified by:
minus
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
elementTimes
public TB elementTimes(TB right)
Constructs a tensor backed object, of the same type as the input objects, which will contain elements which are the products of the respective elements of the input objects.- Specified by:
elementTimes
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
- Parameters:
right
- secondTensorbacked
to use- Returns:
- a tensor backed object of the same as the input object, containing the all the values of the left tensor, multiplied by the values of the right tensor
-
elementTimesV
public TB elementTimesV(V value)
- Specified by:
elementTimesV
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
elementDividedBy
public TB elementDividedBy(TB right)
- Specified by:
elementDividedBy
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
elementDividedByV
public TB elementDividedByV(V value)
- Specified by:
elementDividedByV
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
plusV
public TB plusV(V right)
- Specified by:
plusV
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
minusV
public TB minusV(V right)
- Specified by:
minusV
in interfaceOngoingOperation<TB extends Tensorbacked<V>,V>
-
-