version 1.14, 2018/06/07 11:49:51 |
version 1.15, 2018/06/08 00:03:43 |
|
|
/* $OpenXM: OpenXM/src/ox_gsl/ox_gsl.c,v 1.13 2018/06/07 11:13:05 takayama Exp $ |
/* $OpenXM: OpenXM/src/ox_gsl/ox_gsl.c,v 1.14 2018/06/07 11:49:51 takayama Exp $ |
*/ |
*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
Line 400 int sm_executeFunction() |
|
Line 400 int sm_executeFunction() |
|
call_gsl_monte_plain_miser_vegas_integrate(1); |
call_gsl_monte_plain_miser_vegas_integrate(1); |
}else if (strcmp(func->s,"gsl_monte_vegas_integrate")==0) { |
}else if (strcmp(func->s,"gsl_monte_vegas_integrate")==0) { |
call_gsl_monte_plain_miser_vegas_integrate(2); |
call_gsl_monte_plain_miser_vegas_integrate(2); |
|
}else if (strcmp(func->s,"gsl_odeiv_step_rk4")==0) { |
|
call_gsl_odeiv_step("rk4"); |
}else { |
}else { |
push(make_error2("sm_executeFunction, unknown function",NULL,0,-1)); |
push(make_error2("sm_executeFunction, unknown function",NULL,0,-1)); |
return -1; |
return -1; |
Line 565 cmo *element_of_at(cmo *list,int k) { |
|
Line 567 cmo *element_of_at(cmo *list,int k) { |
|
cellp = list_next(cellp); |
cellp = list_next(cellp); |
} |
} |
return(dic[k]); |
return(dic[k]); |
|
} |
|
|
|
int get_length(cmo *c) { |
|
if (c->tag != CMO_LIST) { |
|
return(-1); |
|
} |
|
return(list_length((cmo_list *)c)); |
} |
} |