February 6th, 2004, 10:09 AM
Recommendation for complex template class
Can anyone recommend a complex number template class which is freely available, other than STL.
the STL <complex> class does not let you write real and imaginary data directly, ie complex<T>::real() returns T - I need a reference to T returned, or for the re and im member data to be public.
February 6th, 2004, 10:47 AM
Try doing a google search, you should find one out there.
Also, "re" and "im" just happen to be the names of the variables in your compiler's implementation of <complex>. It isn't guaranteed that these are the names if you move on to another compiler, or even another version of the compiler.
Another thing: <complex> isn't part of STL. It is one of the standard classes, but it has nothing to do with STL.
February 6th, 2004, 08:01 PM
Boost.org is a good place to look for things like that.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!