public class LinearIndex extends BaseTransformOp
extraArgs, n, numProcessed, passThrough, x, y, z| Constructor and Description |
|---|
LinearIndex() |
LinearIndex(INDArray x) |
LinearIndex(INDArray x,
boolean wholeArray) |
LinearIndex(INDArray x,
INDArray z,
boolean wholeArray) |
LinearIndex(INDArray x,
INDArray y,
INDArray z,
int n,
boolean wholeArray) |
LinearIndex(INDArray x,
INDArray z,
int n,
boolean wholeArray) |
| Modifier and Type | Method and Description |
|---|---|
void |
exec()
Execute the op if its pass through (not needed most of the time)
|
int[] |
getIndices()
The linear indices collected
iterating over the array
|
boolean |
isPassThrough()
Returns whether the op should be executed or not (through the executioner)
|
String |
name()
The name of this operation
|
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
|
derivativeensureProperVectors, exec, extraArgs, init, n, numProcessed, setN, setX, setY, setZ, toString, x, y, zpublic LinearIndex()
public LinearIndex(INDArray x)
public LinearIndex(INDArray x, boolean wholeArray)
public String name()
Oppublic IComplexNumber op(IComplexNumber origin, double other)
Oporigin - the origin numberother - the other numberpublic IComplexNumber op(IComplexNumber origin, float other)
Oporigin - the origin numberother - the other numberpublic IComplexNumber op(IComplexNumber origin, IComplexNumber other)
Oporigin - the origin numberother - the other numberpublic float op(float origin,
float other)
Oporigin - the origin numberother - the other numberpublic double op(double origin,
double other)
Oporigin - the origin numberother - the other numberpublic double op(double origin)
Oporigin - the origin elementpublic float op(float origin)
Oporigin - the origin elementpublic IComplexNumber op(IComplexNumber origin)
Oporigin - the origin elementpublic int[] getIndices()
public void exec()
Oppublic boolean isPassThrough()
OpisPassThrough in interface OpisPassThrough in class BaseOppublic Op opForDimension(int index, int dimension)
Opindex - the index of the op to iterate overdimension - the dimension to ge the input forpublic Op opForDimension(int index, int... dimension)
Opindex - the index of the op to iterate overdimension - the dimension to ge the input forCopyright © 2016. All Rights Reserved.