问个GSL的问题# Programming - 葵花宝典
l*i
1 楼
初级问题:
GSL的gsl_odeiv.h里定义了这么个struct:
typedef struct
{
int (* function) (double t, const double y[], double dydt[], void * params
);
int (* jacobian) (double t, const double y[], double * dfdy, double dfdt[]
, void * params);
size_t dimension;
void * params;
}
gsl_odeiv_system;
GSL的reference manual里说 (* jacobian)可以是NULL pointer,我的程序里
有这么一段:
int *jac=NULL;
gsl_odeiv_system sys = {func, jac1, 2, &mu};
但是编译的时候总说"warning: initialization from incompatible pointer type",
哪位给点建议?
GSL的gsl_odeiv.h里定义了这么个struct:
typedef struct
{
int (* function) (double t, const double y[], double dydt[], void * params
);
int (* jacobian) (double t, const double y[], double * dfdy, double dfdt[]
, void * params);
size_t dimension;
void * params;
}
gsl_odeiv_system;
GSL的reference manual里说 (* jacobian)可以是NULL pointer,我的程序里
有这么一段:
int *jac=NULL;
gsl_odeiv_system sys = {func, jac1, 2, &mu};
但是编译的时候总说"warning: initialization from incompatible pointer type",
哪位给点建议?