Class Function1DiffdddPtr


  • public class Function1DiffdddPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • Function1DiffdddPtr

        public Function1DiffdddPtr​(long cPtr,
                                   boolean cMemoryOwn)
      • Function1DiffdddPtr

        public Function1DiffdddPtr()
        Default constructor yielding a NULL-pointer.
      • Function1DiffdddPtr

        public Function1DiffdddPtr​(Function1Diffddd ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • df

        public double df​(double q)
        Returns gradient(derivative) of the function
      • f

        public double f​(double q)
        Returns function value for arguments q.
      • operate

        public double operate​(double q)
        Wraps the evaluation of x() with operator().