[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Help-gsl] Complex vectors
From: |
Brian Gough |
Subject: |
RE: [Help-gsl] Complex vectors |
Date: |
Wed, 5 Apr 2006 10:59:29 +0100 |
Cory Burkhardt writes:
> I am using the gsl_vector_complex_alloc function, but it isn't working as I
> expected. Calling gsl_vector_complex(5) returns a gsl_vector_complex with a
> size of 5 and a stride of 1. This means that the vector has 5 elements and
> each element is 1 double in length. Shouldn't the stride be at least 2 for
> a complex vector because each element has two double values?
The size is measured in complex elements, so size = 5 means 10
doubles. Ditto for the stride.
--
Brian Gough
Network Theory Ltd,
Publishing the GSL Manual - http://www.network-theory.co.uk/gsl/manual/