Developer documentation

texp_computations.hpp
Go to the documentation of this file.
1 #ifndef realroot_TYPE_STATIC_COMPUTATIONS_H
2 #define realroot_TYPE_STATIC_COMPUTATIONS_H
3 namespace mmx {
4 
5 namespace texp {
6  //template<int a, int b> struct max_value { static const int V = (a>b)?a:b; };
7  template<int a> struct abs_value { static const int V = (a<0)?-a:a; };
8  // template<int a, unsigned n> struct pow { static const int V = pow<a,n-1>::V * a; };
9  // template<int a> struct pow<a,0> { static const int V = 1; };
10 };
11 }// end namespace mmx
12 
13 #endif
Definition: texp_computations.hpp:7
Definition: array.hpp:12
static const int V
Definition: texp_computations.hpp:7
Home