public interface Op
Modifier and Type | Interface and Description |
---|---|
static class |
Op.Type |
Modifier and Type | Method and Description |
---|---|
void |
exec()
Execute the op if its pass through (not needed most of the time)
|
void |
exec(int... dimensions)
Exec along each dimension
|
Object[] |
extraArgs()
Extra arguments
|
Buffer |
extraArgsBuff()
Returns a buffer of either float
or double
of the extra args for this buffer
|
DataBuffer |
extraArgsDataBuff()
Returns the extra args as a data buffer
|
void |
init(INDArray x,
INDArray y,
INDArray z,
long n)
Initialize the operation based on the parameters
|
boolean |
isExecSpecial()
Whether the executioner
needs to do a special call or not
|
boolean |
isPassThrough()
Returns whether the op should be executed or not (through the executioner)
|
long |
n()
The number of elements to do a op over
|
String |
name()
The name of this operation
|
long |
numProcessed()
Number processed
|
double |
op(double origin)
Transform an individual element
|
double |
op(double origin,
double other)
Pairwise op (applicable with an individual element in y)
|
float |
op(float origin)
Transform an individual element
|
float |
op(float origin,
float other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin)
Transform an individual element
|
IComplexNumber |
op(IComplexNumber origin,
double other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin,
float other)
Pairwise op (applicable with an individual element in y)
|
IComplexNumber |
op(IComplexNumber origin,
IComplexNumber other)
Pairwise op (applicable with an individual element in y)
|
Op |
opForDimension(int index,
int... dimension)
A copy of this operation for a particular dimension of the input
|
Op |
opForDimension(int index,
int dimension)
A copy of this operation for a particular dimension of the input
|
int |
opNum()
An op number
|
void |
setN(long n)
Change n
|
void |
setX(INDArray x)
set x (the input ndarray)
|
void |
setY(INDArray y)
set y(the pairwise ndarray)
|
void |
setZ(INDArray z)
set z (the solution ndarray)
|
INDArray |
x()
The origin ndarray
|
INDArray |
y()
The pairwise op ndarray
|
INDArray |
z()
The resulting ndarray
|
boolean isExecSpecial()
DataBuffer extraArgsDataBuff()
Buffer extraArgsBuff()
int opNum()
String name()
INDArray x()
INDArray y()
INDArray z()
long n()
IComplexNumber op(IComplexNumber origin, double other)
origin
- the origin numberother
- the other numberIComplexNumber op(IComplexNumber origin, float other)
origin
- the origin numberother
- the other numberIComplexNumber op(IComplexNumber origin, IComplexNumber other)
origin
- the origin numberother
- the other numberfloat op(float origin, float other)
origin
- the origin numberother
- the other numberdouble op(double origin, double other)
origin
- the origin numberother
- the other numberdouble op(double origin)
origin
- the origin elementfloat op(float origin)
origin
- the origin elementIComplexNumber op(IComplexNumber origin)
origin
- the origin elementOp opForDimension(int index, int dimension)
index
- the index of the op to iterate overdimension
- the dimension to ge the input forOp opForDimension(int index, int... dimension)
index
- the index of the op to iterate overdimension
- the dimension to ge the input forvoid init(INDArray x, INDArray y, INDArray z, long n)
x
- the inputy
- the pairwise transform ndarrayz
- the resulting ndarrayn
- the number of elementslong numProcessed()
Object[] extraArgs()
void setX(INDArray x)
x
- void setZ(INDArray z)
z
- void setY(INDArray y)
y
- boolean isPassThrough()
void exec()
void exec(int... dimensions)
dimensions
- the dimensions to execute onvoid setN(long n)
n
- Copyright © 2016. All Rights Reserved.