Class ElementTensorBackedUnaryOperation<V,​TB extends Tensorbacked<V>>

  • Type Parameters:
    V - the type the values of the tensor
    TB - 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 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 interface UnaryOperation<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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object