jac.h 590 B

12345678910111213141516171819202122
  1. /* Internal header file for Jacobian computations. */
  2. #ifndef jac_h
  3. #define jac_h
  4. #include "types.h"
  5. /* ----------------- function delcarations ----------------- */
  6. /* Setup */
  7. DYMOLA_STATIC void jac_setup(size_t ngroups);
  8. /* computes function f(t,y) */
  9. DYMOLA_STATIC int jac_f(realtype t, N_Vector y, N_Vector ydot, void *user_data);
  10. /* Jacobian routine, computes J(t,y) = df/dy numerically */
  11. DYMOLA_STATIC int jac_Jacobian(long N, realtype t,
  12. N_Vector y, N_Vector fy, DlsMat J, void *user_data,
  13. N_Vector tmp1, N_Vector tmp2, N_Vector tmp3);
  14. #endif /* jac_h */