org.nd4j.linalg.ops
Interface TwoArrayElementWiseOp
-
- All Superinterfaces:
- ElementWiseOp
- All Known Implementing Classes:
- AddOp, BaseTwoArrayElementWiseOp, DivideOp, MultiplyOp, SubtractOp
public interface TwoArrayElementWiseOp extends ElementWiseOp
An extension of the element wise operations applying the element transform to a destination matrix with respect to an origin matrix.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidapplyTransformToDestination(INDArray from, INDArray destination, INDArray other, int i)Apply a transform based on the passed in ndarray to othervoidexec()Executes the operation across the matrix<E> EgetOther(INDArray destination, int i)Returns the element in destination at index iINDArrayto()The output matrix-
Methods inherited from interface org.nd4j.linalg.ops.ElementWiseOp
apply, applyTransformToOrigin, applyTransformToOrigin, from, getFromOrigin
-
-
-
-
Method Detail
-
to
INDArray to()
The output matrix- Returns:
-
getOther
<E> E getOther(INDArray destination, int i)
Returns the element in destination at index i- Parameters:
destination- the destination ndarrayi- the index of the element to retrieve- Returns:
- the element at index i
-
applyTransformToDestination
void applyTransformToDestination(INDArray from, INDArray destination, INDArray other, int i)
Apply a transform based on the passed in ndarray to other- Parameters:
from- the origin ndarraydestination- the destination ndarrayother- the other ndarrayi- the index of the element to retrieve
-
exec
void exec()
Executes the operation across the matrix- Specified by:
execin interfaceElementWiseOp
-
-
DMelt 3.0 © DataMelt by jWork.ORG