std_complex_dbl Package

This package implements a nontemplated class for double complex. It attempts to replicate much of the functionality of std::complex<double>; it is intended that migration to using std::complex<double> once the standard library becomes widely supported.

RECOMMENDATION:

Hide the choice of implementation behind a typedef:

typedef std_complex_dbl complex

Note that this is also the approach taken by Stroustrup with regard to std::complex<double> in "The C++ Programming Language (3rd ed.)" (p. 680).

At present, std_complex_dblis incomplete; support needs to be added for tan, tanh, log10, operator<<, and operator>>. The test suite is deficient and all functionality has not been fully tested. Please notify us if there are errors.

Class Index


Terry Gaetz
Last modified: Mon Jan 12 13:26:47 EST 1998