Documentation of 'org.nd4j.linalg.ops.reduceops.scalarops.BaseScalarOp' Java class
BaseScalarOp
org.nd4j.linalg.ops.reduceops.scalarops

Class BaseScalarOp

    • Constructor Summary

      Constructors 
      Constructor and Description
      BaseScalarOp(double startingValue) 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      abstract double accumulate(INDArray arr, int i, double soFar) 
      java.lang.Double apply(INDArray input)
      Returns the result of applying this function to input.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseScalarOp

        public BaseScalarOp(double startingValue)
    • Method Detail

      • apply

        public java.lang.Double apply(INDArray input)
        Description copied from interface: Function
        Returns the result of applying this function to input. 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 that Objects.equal(function.apply(a), function.apply(b)).
        Specified by:
        apply in interface Function<INDArray,java.lang.Double>
      • accumulate

        public abstract double accumulate(INDArray arr,
                                          int i,
                                          double soFar)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.