vnl_decnum_traits.h
Go to the documentation of this file.
1 // This is core/vnl/vnl_decnum_traits.h
2 #ifndef vnl_decnum_traits_h_
3 #define vnl_decnum_traits_h_
4 //:
5 // \file
6 // \brief numeric traits for vnl_decnum
7 
8 #include <vnl/vnl_decnum.h>
10 #include "vnl/vnl_export.h"
11 
12 template <>
13 class VNL_EXPORT vnl_numeric_traits<vnl_decnum>
14 {
15  public:
16  //: Additive identity
17  static const vnl_decnum zero; // = 0L
18  //: Multiplicative identity
19  static const vnl_decnum one; // = 1L
20  //: Maximum value which this type can assume
21  static const vnl_decnum maxval; // = infinity
22  //: Return value of abs()
23  typedef vnl_decnum abs_t;
24  //: Name of a type twice as long as this one for accumulators and products.
26  //: Name of type which results from multiplying this type with a double
27  typedef vnl_decnum real_t;
28 };
29 
30 #endif // vnl_decnum_traits_h_
vnl_decnum real_t
Name of type which results from multiplying this type with a double.
Templated zero/one/precision.
static const vnl_decnum one
Multiplicative identity.
vnl_decnum abs_t
Return value of abs().
vnl_decnum double_t
Name of a type twice as long as this one for accumulators and products.
Infinite precision numbers with decimal arithmetic.
static const vnl_decnum maxval
Maximum value which this type can assume.
static const vnl_decnum zero
Additive identity.