Class ElementTensorBackedUnaryOperation<V,TB extends Tensorbacked<V>>
- java.lang.Object
-
- org.tensorics.core.tensorbacked.operations.ElementTensorBackedUnaryOperation<V,TB>
-
- Type Parameters:
V
- the type the values of the tensorTB
- the type of the tensor backed object
- All Implemented Interfaces:
java.io.Serializable
,UnaryOperation<TB>
,TensorBackedUnaryOperation<V,TB>
public class ElementTensorBackedUnaryOperation<V,TB extends Tensorbacked<V>> extends java.lang.Object implements TensorBackedUnaryOperation<V,TB>, java.io.Serializable
An operation which takes one tensor-backed object and returns another one of the same type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementTensorBackedUnaryOperation(UnaryOperation<V> elementOperation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
hashCode()
TB
perform(TB value)
performs the operation on the given valuejava.lang.String
toString()
-
-
-
Constructor Detail
-
ElementTensorBackedUnaryOperation
public ElementTensorBackedUnaryOperation(UnaryOperation<V> elementOperation)
-
-
Method Detail
-
perform
public TB perform(TB value)
Description copied from interface:UnaryOperation
performs the operation on the given value- Specified by:
perform
in interfaceUnaryOperation<V>
- Parameters:
value
- the input value, on which the operation shall be applied- Returns:
- the resulting value after the operation
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-