15 std::vector<double*> dfdy;
16 std::vector<double> jacvec;
17 std::vector<double*> LU;
18 std::vector<double> LUw;
19 std::vector<int> luidx;
22 int sparse_stuff_initialized = 0;
24 int repeated_pattern = 0;
29 bool new_jacobian =
false;
31 std::vector<int> col_group;
32 std::vector<int> col_wi;
34 std::unique_ptr<sp_mat> spJ;
35 std::vector<double> xjac;
36 std::unique_ptr<sp_num> Numerical;
41 std::vector<double> dfdy_data_vec;
42 std::vector<double> LU_data_vec;
45struct numjac_workspace {
46 std::vector<double> yscale;
47 std::vector<double> del;
48 std::vector<double> Difmax;
49 std::vector<double> absFdelRm;
50 std::vector<double> absFvalue;
51 std::vector<double> absFvalueRm;
52 std::vector<double> Fscale;
53 std::vector<double> ffdel;
54 std::vector<double> yydel;
55 std::vector<double> tmp;
57 std::vector<double*> ydel_Fdel;
59 std::vector<int> logj;
60 std::vector<int> Rowmax;
63 std::vector<double> ydel_Fdel_data_vec;
66void initialize_jacobian(
struct jacobian* jac,
int neq);
67void uninitialize_jacobian(
struct jacobian* jac);
68void initialize_numjac_workspace(
struct numjac_workspace* nj_ws,
int neq);
69void uninitialize_numjac_workspace(
struct numjac_workspace* nj_ws);
70void calc_C(
struct jacobian* jac);
71void interp_from_dif(
double tinterp,
83void new_linearisation(
struct jacobian* jac,
double hinvGak,
int neq);
84void adjust_stepsize(
double** dif,
double abshdivabshlast,
int neq,
int k);
85void eqvec(
const double* datavec,
double* emptyvec,
int n);
86void lubksb(
double** a,
int n,
const int* indx,
double b[]);
87bool ludcmp(
double** a,
int n,
int* indx,
double* d,
double* vv);
88void fzero_Newton(FunctionRef<
void(
double* x,
int x_size,
double* F)> func,
96void numjac(EvolverDerivs derivs,
100 struct jacobian* jac,
101 struct numjac_workspace* nj_ws,
111void evolver_ndf15(EvolverDerivs derivs,
116 const EvolverOptions& options);