[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: |
Brian Gough |
Subject: |
Re: [Help-gsl] gsl_vector_complex_set with double |
Date: |
Wed, 25 Feb 2009 19:59:49 +0000 |
User-agent: |
Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI) |
At Tue, 24 Feb 2009 17:53:03 +0100,
Alejandro Cámara Iglesias wrote:
> And it complains about being '2.0' double type and now
> gsl_complex. Is there any way faster to do it without
> defining a new gsl_complex variable with 2.0?
That is the way I would recommend.
gsl_complex z = gsl_complex_rect(x,y);
gsl_vector_complex_set(v,i,z)
Alternatively
gsl_complex *vi = gsl_vector_complex_ptr(v,i);
GSL_SET_COMPLEX (vi, x, y);
--
Brian Gough
Support freedom by joining the FSF!
http://www.fsf.org/associate/support_freedom/join_fsf?referrer=37
Re: [Help-gsl] gsl_vector_complex_set with double,
Brian Gough <=