[Top][All Lists]

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

Re: [Bug-gsl] Bug in gsl_matrix_complex_view_array and gsl_vector_comple

From: Brian Gough
Subject: Re: [Bug-gsl] Bug in gsl_matrix_complex_view_array and gsl_vector_complex_view_array
Date: Mon, 14 Sep 2009 11:25:29 +0100
User-agent: Wanderlust/2.14.0 (Africa) Emacs/22.2 Mule/5.0 (SAKAKI)

At Fri, 11 Sep 2009 17:09:30 +0200,
Igor Gotlibovych wrote:
> I have discovered a bug with gsl_matrix_complex_view_array, seen
> from the definition
> gsl_matrix_complex_view_array (double * base,
>                              const size_t n1, const size_t n2);
> I expected base to be of type gsl_complex*, to be consistent with
> corresponding functions for other types. The same problem exists for
> gsl_vector_complex_view_array.


For arrays of complex types we recommend using double *, or its
equivalent gsl_complex_packed_array defined in gsl_complex.h.

We don't use arrays of type gsl_complex * as these may differ in size,
due to the possibility of padding at the end of the gsl_complex

Brian Gough

GNU Scientific Library -

reply via email to

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