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