[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] gsl_vector_complex_set with double
From: |
Alejandro Cámara Iglesias |
Subject: |
[Help-gsl] gsl_vector_complex_set with double |
Date: |
Tue, 24 Feb 2009 17:53:03 +0100 |
User-agent: |
KMail/1.11.0 (Linux/2.6.27-11-generic; KDE/4.2.0; i686; ; ) |
Hi list, first post here,
I'm trying to perform some programs that need to mix double
and complex values. I came to a problem when trying to
perform something like:
gsl_vector_complex *F = gsl_vector_complex_alloc( 5 );
gsl_vector_complex_set_zero( F );
gsl_vector_complex_set( F, 0, 2.0 );
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?
I think it must be but I haven't found it :-?
- Alejandro Cámara
- [Help-gsl] gsl_vector_complex_set with double,
Alejandro Cámara Iglesias <=
Re: [Help-gsl] gsl_vector_complex_set with double, Brian Gough, 2009/02/25