logo       

Re: Custom structures containing gsl_vector: msg#00064

lib.gsl.general

Subject: Re: Custom structures containing gsl_vector

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise