org.nd4j.linalg.ops.reduceops.complex
Class BaseScalarOp
- java.lang.Object
-
- org.nd4j.linalg.ops.reduceops.complex.BaseScalarOp
-
- All Implemented Interfaces:
- Function<IComplexNDArray,IComplexNumber>, ScalarOp
- Direct Known Subclasses:
- Max, Mean, Min, Norm1, Norm2, NormMax, Prod, StandardDeviation, Sum, Variance
public abstract class BaseScalarOp extends java.lang.Object implements ScalarOp
Abstract class for scalar operations
-
-
Constructor Summary
Constructors Constructor and Description BaseScalarOp(IComplexNumber startingValue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract IComplexNumberaccumulate(IComplexNDArray arr, int i, IComplexNumber soFar)IComplexNumberapply(IComplexNDArray input)Returns the result of applying this function toinput.
-
-
-
Constructor Detail
-
BaseScalarOp
public BaseScalarOp(IComplexNumber startingValue)
-
-
Method Detail
-
apply
public IComplexNumber apply(IComplexNDArray input)
Description copied from interface:FunctionReturns the result of applying this function toinput. This method is generally expected, but not absolutely required, to have the following properties:- Its execution does not cause any observable side effects.
- The computation is consistent with equals; that is,
Objects.equal(a, b)implies thatObjects.equal(function.apply(a), function.apply(b)).
- Specified by:
applyin interfaceFunction<IComplexNDArray,IComplexNumber>
-
accumulate
public abstract IComplexNumber accumulate(IComplexNDArray arr, int i, IComplexNumber soFar)
-
-
DMelt 3.0 © DataMelt by jWork.ORG