Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

rw_numeric_traits<T>

Module:  Essential Math    Group:  Math Collection classes


Does not inherit

Local Index

Members

Synopsis

template <class T>
class rw_numeric_traits

Specializations

Description

The rw_numeric_traits class is a helper class that contains only typedef information. The generic rw_numeric_traits<T> assumes that all the typedefs are set to T. Since this is not desirable for many types, we specialize for each numeric type that is used in the library.

The specializations used in the library are contained in the file
rw/math/numtrait.h. For an overview of how to add a new numeric type, see.

There are seven public typedefs in each specialized rw_numeric_traits class. Each typedef must be defined in a given specialization for proper results. The generic class is:

Typedefs

rw_numeric_traits<T>::norm_type
rw_numeric_traits<T>::calc_type
rw_numeric_traits<T>::numeric_type
rw_numeric_traits<T>::c_type
rw_numeric_traits<T>::promote_type
rw_numeric_traits<T>::mathFunType
rw_numeric_traits<T>::mathFunType2


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.