-
February 6th, 2004, 11:09 AM
#1
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.
Thanks
Jon
-
February 6th, 2004, 11:47 AM
#2
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.
Regards,
Paul McKenzie
-
February 6th, 2004, 09:01 PM
#3
Boost.org is a good place to look for things like that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|