A
Aleramo
Hallo, i have to do a program with gsl library. I have to declare two
global array cos i can't pass them to gsl functions. The problem is the
size is an input from program. What can i do? I want to try it: .......
/* Declaration global variables */ int elementi ; gsl_vector_complex
*s_v= gsl_vector_complex_alloc (elementi) ; double esponenti [elementi]
; ....... int main () { ...... scanf ("%d", &elementi) ;
/* inizializzation esponenti */ /* gsl function with the
inizialization of s_v inside a for () */ ...... return 0 ; }
What can i do? By Aleramo.
global array cos i can't pass them to gsl functions. The problem is the
size is an input from program. What can i do? I want to try it: .......
/* Declaration global variables */ int elementi ; gsl_vector_complex
*s_v= gsl_vector_complex_alloc (elementi) ; double esponenti [elementi]
; ....... int main () { ...... scanf ("%d", &elementi) ;
/* inizializzation esponenti */ /* gsl function with the
inizialization of s_v inside a for () */ ...... return 0 ; }
What can i do? By Aleramo.