public interface ElementWiseOp
Modifier and Type | Method and Description |
---|---|
<E> E |
apply(INDArray origin,
java.lang.Object value,
int i)
The transformation for a given value (a scalar)
|
void |
applyTransformToOrigin(INDArray origin,
int i)
Apply the transformation at from[i]
|
void |
applyTransformToOrigin(INDArray origin,
int i,
java.lang.Object valueToApply)
Apply the transformation at from[i] using the supplied value (a scalar ndarray)
|
void |
exec()
Apply the transformation
|
INDArray |
from()
The input matrix
|
<E> E |
getFromOrigin(INDArray origin,
int i)
Get the element at from
at index i
|
INDArray from()
void applyTransformToOrigin(INDArray origin, int i)
origin
- the origin ndarrayi
- the index of the element to applyTransformToOriginvoid applyTransformToOrigin(INDArray origin, int i, java.lang.Object valueToApply)
origin
- the origin ndarrayi
- the index of the element to applyTransformToOriginvalueToApply
- the value to apply to the given index<E> E getFromOrigin(INDArray origin, int i)
origin
- the origin ndarrayi
- the index of the element to retrieve<E> E apply(INDArray origin, java.lang.Object value, int i)
origin
- the origin ndarrayvalue
- the value to apply (a scalar)i
- the index of the element being acted uponvoid exec()
Copyright © 2014. All Rights Reserved.