Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimTK::Widest< R1, R2 > Struct Template Reference

This class is specialized for all 36 combinations of standard types (that is, real and complex types in each of three precisions) and has typedefs "Type" which is the appropriate "widened" type for use when R1 & R2 appear in an operation together, and "Precision" which is the wider precision (float,double,long double). More...

Detailed Description

template<class R1, class R2>
struct SimTK::Widest< R1, R2 >

This class is specialized for all 36 combinations of standard types (that is, real and complex types in each of three precisions) and has typedefs "Type" which is the appropriate "widened" type for use when R1 & R2 appear in an operation together, and "Precision" which is the wider precision (float,double,long double).

For example, if R1=complex< float > and R2=long double, Widest<R1,R2>::Type is complex<long double> and Widest<R1,R2>::Precision is long double.


The documentation for this struct was generated from the following file: