Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-09 22:52:32

----- Original Message -----
From: <nbecker_at_[hidden]>

> >>>>> "rwgk" == rwgk <rwgk_at_[hidden]> writes:
> rwgk> std::complex
> rwgk> no portable way of viewing std::complex<T> as an array of two
> Sounds like you want an iterator adaptor.

No, Ralf wants to interface to the many fast libraries written in 'C' and
Fortran for working with complex numbers stored as consecutive doubles in an
array (see FFTW - the Fastest Fourier Transform in the West). Some of these
algorithms (FFTs especially) also require in-place transformation between an
array of N complex numbers and an array of 2N real numbers. Since
std::complex is non-POD, these sorts of transformations are illegal.


Boost list run by bdawes at, gregod at, cpdaniel at, john at