ConvertScalar.h

Classes

Global Functions -- Templated functions to convert scalars from one type to another. (full description)

Templated functions to convert scalars from one type to another. (source)

Interface

inline void convertScalar (T& out, F in)
inline void convertScalar (Complex& out, DComplex in)

Description

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Synopsis

Templated functions to convert scalars from one type to another. They are useful to be able to convert a DComplex to a Complex in templated classes. A Complex,DComplex specialisation is necessary because the complex class in the standard C++ library does not have such an automatic conversion.

Member Description

inline void convertScalar (T& out, F in)

inline void convertScalar (Complex& out, DComplex in)