help-gsl
[Top][All Lists]
Advanced

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

Re: [Help-gsl] Custom structures containing gsl_vector


From: Daniel J Farrell
Subject: Re: [Help-gsl] Custom structures containing gsl_vector
Date: Tue, 27 Nov 2007 23:18:41 +0000

Hello Steve,

Yes that was the problem! I did not realise that by declaring the spectrum variable as a pointer to a Spectra struct,

Spectra *spectrum;
MakeSpectra (Spectum, x, y, count);


the run-time does not actually allocate any memory. You have to do this,

Spectra spectrum;
MakeSpectra (&Spectrum, x, y, count);

Thanks for pointing that our.

Regards,

Dan.









reply via email to

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