Documentation of 'org.nd4j.linalg.ops.BaseTwoArrayElementWiseOp' Java class
BaseTwoArrayElementWiseOp
org.nd4j.linalg.ops

Class BaseTwoArrayElementWiseOp

    • Constructor Detail

      • BaseTwoArrayElementWiseOp

        public BaseTwoArrayElementWiseOp()
    • Method Detail

      • applyTransformToDestination

        public void applyTransformToDestination(INDArray from,
                                                INDArray destination,
                                                INDArray other,
                                                int i)
        Apply the function from to the specified index in to. The value from to is passed in to apply and then a transform of the matching elements in both from and to are used for a transformation. If a scalar is specified, this will apply a scalar wise operation based on the scalar and the origin matrix instead
        Specified by:
        applyTransformToDestination in interface TwoArrayElementWiseOp
        Parameters:
        i - the index to apply to
        from - the origin ndarray
        destination - the destination ndarray
        other - the other ndarray
      • getOther

        public java.lang.Object getOther(INDArray other,
                                         int i)
        Returns the element in destination at index i
        Specified by:
        getOther in interface TwoArrayElementWiseOp
        Parameters:
        i - the index of the element to retrieve
        other - the destination ndarray
        Returns:
        the element at index i
      • apply

        public java.lang.Object apply(INDArray origin,
                                      java.lang.Object value,
                                      int i)
        The transformation for a given value
        Specified by:
        apply in interface ElementWiseOp
        Parameters:
        value - the value to applyTransformToOrigin
        origin - the origin ndarray
        i - the index of the element being acted upon
        Returns:
        the transformed value based on the input

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.