IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

Passing optional parameters to constrained conjugate gradient breaks with Hessian product #69

Open pastewka opened 8 months ago

pastewka commented 8 months ago

The constrained conjugate gradient algorithm allows the specification of a Hessian product function. The optional args parameter is currently not passed to the Hessian product, because the code checks the signature (number of arguments) of the function and adjust the parameters.

When cleaning this up, we should consider moving to scipy's LinearOperator for passing in the Hessian product.