SourceForge Logo Tiny Vector Matrix library using Expression Templates Sourceforge Project Page

Public Types
tvmet::PrecisionTraits< T > Class Template Reference

Declaring ranks of types to avoid specializing. More...

#include <tvmet/TypePromotion.h>

List of all members.

Public Types

enum  { rank = 0, known = 0 }

Detailed Description

template<class T>
class tvmet::PrecisionTraits< T >

Declaring ranks of types to avoid specializing.

double> > TypePromotion.h "tvmet/TypePromotion.h"

long long> > TypePromotion.h "tvmet/TypePromotion.h"

long> > TypePromotion.h "tvmet/TypePromotion.h"

int> > TypePromotion.h "tvmet/TypePromotion.h"

> TypePromotion.h "tvmet/TypePromotion.h"

long> TypePromotion.h "tvmet/TypePromotion.h"

TypePromotion.h "tvmet/TypePromotion.h".

All possible promoted types. For example, bool=1, int=2, float=3, double=4, etc. We can use a traits class to map from a type such as float onto its "precision rank". We will promote to whichever type has a higher "precision rank". f there is no "precision rank" for a type, we'll promote to whichever type requires more storage space (and hopefully more precision).


Member Enumeration Documentation

template<class T>
anonymous enum
Enumerator:
rank 

the rank of type.

known 

true, if the rank is specialized = known.

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Author: