[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] gsl and matricies

From: Jimc10
Subject: [Help-gsl] gsl and matricies
Date: Tue, 9 Nov 2004 02:36:59 EST

I am eventually trying to use the GSL library to calculate the eigenvalues of 
matiricies. (Mac OSX, Xcode). As best I can tell the files have all 
downloaded and after much effort it appears that it finds all the needed header 
including gsl_matrix.h. When I try to run the sample  program below I get the 
effor message:"unknown symbol _gsl_matrix_alloc ". I get similar results with 

I can not tell where the actual code for these function are. It does not 
appear to be in the header files. 

Thank you for your help
James Celentano

int main (void)
{int i, j; gsl_matrix * m = gsl_matrix_alloc (10, 3);
for (i = 0; i < 10; i++)for (j = 0; j < 3; j++)gsl_matrix_set (m, i, j, 0.23 
+ 100*i + j);
for (i = 0; i < 10; i++)for (j = 0; j < 3; j++)printf ("m(%d,%d) = %g\n", i, 
j, gsl_matrix_get (m, i, j));
return 0;}

reply via email to

[Prev in Thread] Current Thread [Next in Thread]