public abstract class BaseElementWiseOp extends java.lang.Object implements ElementWiseOp
Modifier and Type | Field and Description |
---|---|
protected static java.util.concurrent.ExecutorService |
dimensionThreads |
protected INDArray |
from |
protected java.lang.Object |
scalarValue |
Constructor and Description |
---|
BaseElementWiseOp() |
Modifier and Type | Method and Description |
---|---|
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
|
void |
exec()
Apply the transformation
|
INDArray |
from()
The input matrix
|
java.lang.Object |
getFromOrigin(INDArray origin,
int i)
Get the element at from
at index i
|
static java.util.concurrent.ExecutorService |
getThreads() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
protected INDArray from
protected java.lang.Object scalarValue
protected static java.util.concurrent.ExecutorService dimensionThreads
public static java.util.concurrent.ExecutorService getThreads()
public void applyTransformToOrigin(INDArray origin, int i)
applyTransformToOrigin
in interface ElementWiseOp
i
- the index of the element to apply the transform toorigin
- the origin ndarraypublic void applyTransformToOrigin(INDArray origin, int i, java.lang.Object valueToApply)
applyTransformToOrigin
in interface ElementWiseOp
origin
- the origin ndarrayi
- the index of the element to applyTransformToOriginvalueToApply
- the value to apply to the given indexpublic java.lang.Object getFromOrigin(INDArray origin, int i)
ElementWiseOp
getFromOrigin
in interface ElementWiseOp
origin
- the origin ndarrayi
- the index of the element to retrievepublic INDArray from()
from
in interface ElementWiseOp
public void exec()
exec
in interface ElementWiseOp
Copyright © 2014. All Rights Reserved.