petsc4py.typing.TAOObjectiveGradientFunction#

petsc4py.typing.TAOObjectiveGradientFunction#

TAO objective function and gradient callback.

alias of Callable[[TAO, Vec, Vec], float]