Numerical Recipes in C++ is good for algorithms but terrible for coding style.
What's wrong with std::vector<std::complex<double> > ?
>
> Looking over Numerical Recipes in C++, they suggest implementing a list of N
> complex numbers as an array of 2*N floats because they argue that you
> maintain control of how the complex number calculations are implemented.
>
> I'm thinking about creating a ComplexArray class that initially would use this
> implementation but like all classes should have interfaces that are generic
> enough so that the underlying implementation can be changed.
>
> Thoughts?
>