IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
NumericLimits.h
Go to the documentation of this file.
1 // NumericLimits.h:
3 // ----------------
4 //
14 
15 #ifndef __IPSDKUTIL_NUMERICLIMITS_H__
16 #define __IPSDKUTIL_NUMERICLIMITS_H__
17 
20 
21 namespace ipsdk {
22 
25 
26 template <typename T>
28 {
29  static const T s_min;
30  static const T s_min_strictly_positive;
31  static const T s_max;
32  static const T s_eps;
33  static const T s_sqrt_eps;
34 
35  static IPSDK_FORCEINLINE T min()
36  {
37  return s_min;
38  }
39 
40  static IPSDK_FORCEINLINE T min_strictly_positive()
41  {
42  return s_min_strictly_positive;
43  }
44 
45  static IPSDK_FORCEINLINE T max()
46  {
47  return s_max;
48  }
49 
50  static IPSDK_FORCEINLINE T epsilon()
51  {
52  return s_eps;
53  }
54 
55  static IPSDK_FORCEINLINE T sqrt_epsilon()
56  {
57  return s_sqrt_eps;
58  }
59 };
60 
63 
64 } // end of namespace ipsdk
65 
66 #endif // __IPSDKUTIL_NUMERICLIMITS_H__
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Definition: NumericLimits.h:27
IPSDK_FORCEINLINE PackT max(const PackT &in1, const PackT &in2)
returns the maximum of 2 packs
Definition: max.h:40
IPSDK_FORCEINLINE PackT min(const PackT &in1, const PackT &in2)
returns the minimum of 2 packs
Definition: min.h:40
#define IPSDKUTIL_API
Import/Export macro for library IPSDKUtil.
Definition: IPSDKUtilExports.h:27
Definition of import/export macro for library.