org.nd4j.linalg.transformation
Class ScalarMatrixTransform
- java.lang.Object
-
- org.nd4j.linalg.transformation.ScalarMatrixTransform
-
- All Implemented Interfaces:
- Function<INDArray,INDArray>, java.io.Serializable, MatrixTransform
- Direct Known Subclasses:
- AddScalar, DivideScalar, MultiplyScalar, PowScale, SubtractScalar
public abstract class ScalarMatrixTransform extends java.lang.Object implements MatrixTransform
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ScalarMatrixTransform(double scaleBy)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description abstract INDArrayapply(INDArray input)Returns the result of applying this function toinput.
-
-
-
Method Detail
-
apply
public abstract INDArray apply(INDArray 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)).
-
-
DMelt 3.0 © DataMelt by jWork.ORG