public abstract class BaseTwoArrayElementWiseOp extends BaseElementWiseOp implements TwoArrayElementWiseOp
Modifier and Type | Field and Description |
---|---|
protected INDArray |
other |
protected INDArray |
to |
dimensionThreads, from, scalarValue
Constructor and Description |
---|
BaseTwoArrayElementWiseOp() |
Modifier and Type | Method and Description |
---|---|
Object |
apply(INDArray origin,
Object value,
int i)
The transformation for a given value
|
void |
applyTransformToDestination(INDArray from,
INDArray destination,
INDArray other,
int i)
Apply the function from to the specified index
in to.
|
protected abstract IComplexNumber |
complexComplex(IComplexNumber num1,
IComplexNumber num2) |
protected abstract IComplexNumber |
complexReal(IComplexNumber origin,
float secondValue) |
protected Object |
doOp(INDArray originNDArray,
int i,
Object value) |
void |
exec()
Executes the operation
across the matrix
|
Object |
getOther(INDArray other,
int i)
Returns the element
in destination at index i
|
protected abstract IComplexNumber |
realComplex(float real,
IComplexNumber other) |
protected abstract float |
realReal(float firstElement,
float secondElement) |
INDArray |
to()
The output matrix
|
applyTransformToOrigin, applyTransformToOrigin, from, getFromOrigin, getThreads
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyTransformToOrigin, applyTransformToOrigin, from, getFromOrigin
public void applyTransformToDestination(INDArray from, INDArray destination, INDArray other, int i)
applyTransformToDestination
in interface TwoArrayElementWiseOp
i
- the index to apply tofrom
- the origin ndarraydestination
- the destination ndarrayother
- the other ndarraypublic void exec()
exec
in interface ElementWiseOp
exec
in interface TwoArrayElementWiseOp
exec
in class BaseElementWiseOp
public Object getOther(INDArray other, int i)
getOther
in interface TwoArrayElementWiseOp
i
- the index of the element to retrieveother
- the destination ndarrayprotected abstract IComplexNumber complexComplex(IComplexNumber num1, IComplexNumber num2)
protected abstract IComplexNumber realComplex(float real, IComplexNumber other)
protected abstract IComplexNumber complexReal(IComplexNumber origin, float secondValue)
protected abstract float realReal(float firstElement, float secondElement)
public Object apply(INDArray origin, Object value, int i)
apply
in interface ElementWiseOp
value
- the value to applyTransformToOriginorigin
- the origin ndarrayi
- the index of the element being acted uponpublic INDArray to()
to
in interface TwoArrayElementWiseOp
Copyright © 2014. All Rights Reserved.