This is the Tiny Vector Matrix Expression Templates library found at http://tvmet.sourceforge.net. It is the fastest and most compact matrix lib out there (for < 10x10 matricies). I have done some minor tweaks to make it compile for mbed. For examples and hints on how to use, see: http://tvmet.sourceforge.net/usage.html
Dependents: Eurobot_2012_Secondary
PrecisionTraits< T > Class Template Reference
Declaring ranks of types to avoid specializing. More...
#include <tvmet/TypePromotion.h>
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).
Definition at line 42 of file TypePromotion.h.
Member Enumeration Documentation
anonymous enum |
Definition at line 43 of file TypePromotion.h.
Generated on Tue Jul 12 2022 19:00:12 by 1.7.2