[Top][All Lists]

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

Re: [Help-gsl] gsl_vector_complex_set with double

From: Alejandro Cámara Iglesias
Subject: Re: [Help-gsl] gsl_vector_complex_set with double
Date: Wed, 25 Feb 2009 10:19:48 +0100
User-agent: KMail/1.11.0 (Linux/2.6.27-11-generic; KDE/4.2.0; i686; ; )

Hi Kevin,

Kevin Channon escribió:
> Yes, that does seem to be a problem.  The best way to do
> it might be to make a function like:
> int gsl_vector_complex_set_real(gsl_vector_complex *vec,
> int index, double value)
> {
>    gsl_complex temp = {value, 0.0};
>    gsl_vector_complex_set(vec, index, temp);
>    return GSL_SUCCESS;
> }

That's what I'll do. But is there any plans on doing this in 
the GSL as standard? I think this may be useful and it seems 
easy to implement, but maybe it breaks some policies of the 

- Alejandro Cámara

reply via email to

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