public abstract class BaseAccumulation extends BaseOp implements Accumulation
Modifier and Type | Field and Description |
---|---|
protected IComplexNumber |
currentComplexResult |
protected Number |
currentResult |
protected Number |
initial |
protected IComplexNumber |
initialComplex |
protected List<Number> |
otherAccum |
protected List<IComplexNumber> |
otherAccumComplex |
extraArgs, n, numProcessed, passThrough, x, y, z
Constructor and Description |
---|
BaseAccumulation() |
BaseAccumulation(INDArray x) |
BaseAccumulation(INDArray x,
INDArray y) |
BaseAccumulation(INDArray x,
INDArray y,
INDArray z,
int n)
Initialize with the given
input, pairwise transform, result, and number
of elements
|
BaseAccumulation(INDArray x,
INDArray y,
int n) |
Modifier and Type | Method and Description |
---|---|
Number |
currentResult()
Current result
|
IComplexNumber |
currentResultComplex()
Current accumulated result
|
void |
init(INDArray x,
INDArray y,
INDArray z,
int n)
Initialize the operation based on the parameters
|
int |
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)
|
List<Number> |
otherAccum()
Other accmuluations from the primary
|
List<IComplexNumber> |
otherAccumComplex()
Other accmuluations from the primary
|
void |
setCurrentResult(Number number)
Set the current result
|
void |
setCurrentResultComplex(IComplexNumber complexNumber)
Set the current complex number
result
|
Number |
zero()
Initial value
|
IComplexNumber |
zeroComplex()
Complex initial value
|
exec, extraArgs, isPassThrough, n, setX, setY, setZ, toString, x, y, z
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
update, update
protected Number currentResult
protected IComplexNumber currentComplexResult
protected List<IComplexNumber> otherAccumComplex
protected Number initial
protected IComplexNumber initialComplex
public BaseAccumulation()
public BaseAccumulation(INDArray x, INDArray y, INDArray z, int n)
x
- the inputy
- the pairwise transformz
- the resultn
- the number of elementspublic BaseAccumulation(INDArray x)
public IComplexNumber op(IComplexNumber origin, double other)
Op
public IComplexNumber op(IComplexNumber origin, float other)
Op
public IComplexNumber op(IComplexNumber origin, IComplexNumber other)
Op
public float op(float origin, float other)
Op
public double op(double origin, double other)
Op
public double op(double origin)
Op
public float op(float origin)
Op
public IComplexNumber op(IComplexNumber origin)
Op
public Number zero()
Accumulation
zero
in interface Accumulation
public IComplexNumber zeroComplex()
Accumulation
zeroComplex
in interface Accumulation
public IComplexNumber currentResultComplex()
Accumulation
currentResultComplex
in interface Accumulation
public Number currentResult()
Accumulation
currentResult
in interface Accumulation
public int numProcessed()
Op
numProcessed
in interface Op
numProcessed
in class BaseOp
public List<IComplexNumber> otherAccumComplex()
Accumulation
otherAccumComplex
in interface Accumulation
public List<Number> otherAccum()
Accumulation
otherAccum
in interface Accumulation
public void setCurrentResult(Number number)
Accumulation
setCurrentResult
in interface Accumulation
number
- the resultpublic void setCurrentResultComplex(IComplexNumber complexNumber)
Accumulation
setCurrentResultComplex
in interface Accumulation
complexNumber
- the current complex number
resultCopyright © 2015. All Rights Reserved.