GSL里面的例子是不是有的不对阿?# Computation - 科学计算
c*y
1 楼
比如:
#include
#include
#include
#include
#include
int main (void)
{
double data[]={1.0,1/2.0,1/3.0,1/4.0,
1/2.0,1/3.0,1/4.0,1/5.0,
1/3.0,1/4.0,1/5.0,1/6.0,
1/4.0,1/5.0,1/6.0,1/7.0};
gsl_matrix_view m = gsl_matrix_view_array(data, 4, 4);
gsl_vector *eval = gsl_vector_alloc (4);
gsl_matrix *evec = gsl_matrix_alloc (4, 4);
gsl_ei
#include
#include
#include
#include
#include
int main (void)
{
double data[]={1.0,1/2.0,1/3.0,1/4.0,
1/2.0,1/3.0,1/4.0,1/5.0,
1/3.0,1/4.0,1/5.0,1/6.0,
1/4.0,1/5.0,1/6.0,1/7.0};
gsl_matrix_view m = gsl_matrix_view_array(data, 4, 4);
gsl_vector *eval = gsl_vector_alloc (4);
gsl_matrix *evec = gsl_matrix_alloc (4, 4);
gsl_ei