Class ElementBinaryFunction<V,​R>

    • Method Detail

      • perform

        public Tensor<R> perform​(Tensor<V> left,
                                 Tensor<V> right)
        Description copied from interface: BinaryFunction
        Has to be implemented to perform the actual operation. The order of operands might be important or not, depending, if the operation is commutative or not.
        Specified by:
        perform in interface BinaryFunction<V,​R>
        Parameters:
        left - the left operand to be used in the operation
        right - the right operand to be used in the operation
        Returns:
        the result of 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