org.nd4j.linalg.ops
Interface ElementWiseOp
-
- All Known Subinterfaces:
- TwoArrayElementWiseOp
- All Known Implementing Classes:
- Abs, AddOp, BaseElementWiseOp, BaseTwoArrayElementWiseOp, DivideOp, EqualTo, Exp, Floor, GreaterThan, HardTanh, Identity, LessThan, Log, Max, MaxOut, MultiplyOp, Negative, NotEqualTo, Pow, Round, Sigmoid, Sign, Sqrt, Stabilize, SubtractOp, Tanh
public interface ElementWiseOpAn element wise operation over an ndarray.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description <E> Eapply(INDArray origin, java.lang.Object value, int i)The transformation for a given value (a scalar)voidapplyTransformToOrigin(INDArray origin, int i)Apply the transformation at from[i]voidapplyTransformToOrigin(INDArray origin, int i, java.lang.Object valueToApply)Apply the transformation at from[i] using the supplied value (a scalar ndarray)voidexec()Apply the transformationINDArrayfrom()The input matrix<E> EgetFromOrigin(INDArray origin, int i)Get the element at from at index i
-
-
-
Method Detail
-
from
INDArray from()
The input matrix- Returns:
-
applyTransformToOrigin
void applyTransformToOrigin(INDArray origin, int i)
Apply the transformation at from[i]- Parameters:
origin- the origin ndarrayi- the index of the element to applyTransformToOrigin
-
applyTransformToOrigin
void applyTransformToOrigin(INDArray origin, int i, java.lang.Object valueToApply)
Apply the transformation at from[i] using the supplied value (a scalar ndarray)- Parameters:
origin- the origin ndarrayi- the index of the element to applyTransformToOriginvalueToApply- the value to apply to the given index
-
getFromOrigin
<E> E getFromOrigin(INDArray origin, int i)
Get the element at from at index i- Parameters:
origin- the origin ndarrayi- the index of the element to retrieve- Returns:
- the element at index i
-
apply
<E> E apply(INDArray origin, java.lang.Object value, int i)
The transformation for a given value (a scalar)- Parameters:
origin- the origin ndarrayvalue- the value to apply (a scalar)i- the index of the element being acted upon- Returns:
- the transformed value based on the input
-
exec
void exec()
Apply the transformation
-
-
DMelt 3.0 © DataMelt by jWork.ORG