|
On Sun, 2006-10-01 at 18:44 -0500, Joseph Wang wrote:
> 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.
That pretty much defeats the purpose of having a std::complex class in
the standard library, doesn't it? It's like arguing that one should
implement his own containers to maintain control.
Mark's suggestion of using valarray and complex didn't sound bad to me.
Later,
Luigi
----------------------------------------
Dealing with failure is easy: work hard to improve. Success is also
easy to handle: you've solved the wrong problem. Work hard to improve.
-- Alan Perlis
|