Interface HessianProduct

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface HessianProduct
A matrix-free Hessian: given the current point x and a vector p, return H(x) p. Mirrors the hessp(x, p, *args) callable from scipy's minimize(method='trust-constr') API. Pairs with HessianLinearOperator, which adapts a HessianProduct to the explicit-matrix slot used elsewhere in the port.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(Matrix x, Matrix p, Object args)
     
  • Method Details

    • apply

      Matrix apply(Matrix x, Matrix p, Object args)
      Parameters:
      x - [n] current point
      p - [n] vector to multiply
      args - optional extra arguments forwarded by the caller
      Returns:
      [n] result of H(x) p