19 #ifndef MANGO_PACKAGE_PETSC_H
20 #define MANGO_PACKAGE_PETSC_H
22 #ifdef MANGO_PETSC_AVAILABLE
29 class Least_squares_solver;
33 #ifdef MANGO_PETSC_AVAILABLE
34 static PetscErrorCode mango_petsc_objective_function(Tao, Vec, PetscReal*,
void*);
35 static PetscErrorCode mango_petsc_residual_function(Tao, Vec, Vec,
void*);
36 static PetscErrorCode mango_petsc_Jacobian_function(Tao, Vec, Mat, Mat,
void*);