version 1.14, 2018/06/07 11:49:51 |
version 1.17, 2019/10/23 07:00: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.16 2019/10/21 05:37:20 takayama Exp $ |
*/ |
*/ |
|
|
#include <stdio.h> |
#include <stdio.h> |
|
|
#include <math.h> |
#include <math.h> |
#include "ox_gsl.h" |
#include "ox_gsl.h" |
#include "call_gsl.h" // need only when you bind call_gsl functions. |
#include "call_gsl.h" // need only when you bind call_gsl functions. |
|
#include "call_gsl_sf.h" |
|
|
OXFILE *fd_rw; |
OXFILE *fd_rw; |
|
|
Line 400 int sm_executeFunction() |
|
Line 401 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 if (strcmp(func->s,"gsl_sf_gamma_inc")==0) { |
|
call_gsl_sf_gamma_inc(); |
|
}else if (strcmp(func->s,"gsl_eigen_nonsymmv")==0) { |
|
call_gsl_eigen_nonsymmv(); |
}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 572 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)); |
} |
} |