Namespaces | |
| namespace | ConsistencyLevel |
| Consistency level. | |
Approximated functions | |
| float | am_sqrt_0 (float x) |
| Square root value of x. | |
| float | am_sqrt_1 (float x) |
| Square root value of x. | |
| float | am_rsqrt_0 (float x) |
| 1/sqrt(x) | |
| float | am_rsqrt_1 (float x) |
| 1/sqrt(x) | |
| float | am_exp (float x) |
| Exponential value of x. | |
| float | am_log (float x) |
| Logarithms value of x (base e). | |
| float | am_pow (float x, float y) |
| Calculate x raises to the power y. | |
| float | am_sin_0 (float x) |
| Sine value of x (in radian). | |
| float | am_sin_1 (float x) |
| Sine value of x (in radian). | |
| float | am_cos_0 (float x) |
| Cosine value of x (in radian). | |
| float | am_cos_1 (float x) |
| Cosine value of x (in radian). | |
| void | am_sincos (float x, float &s, float &c) |
| Sine and cosine value of x (in radian). | |
| float | am_tan_0 (float x) |
| Tangent value of x (in radian). | |
| float | am_tan_1 (float x) |
| Tangent value of x (in radian). | |
| float | am_asin_0 (float x) |
| Arc sine value (in radian) of x. | |
| float | am_asin_1 (float x) |
| Arc sine value (in radian) of x. | |
| float | am_acos_0 (float x) |
| Arc cosine value (in radian) of x. | |
| float | am_acos_1 (float x) |
| Arc cosine value (in radian) of x. | |
| float | am_atan_0 (float x) |
| Arc tangent value (in radian) of x. | |
| float | am_atan_1 (float x) |
| Arc tangent value (in radian) of x. | |
Numerical constants | |
| static double | CPi () |
| Pi is the ratio of the circumference of a circle to its diameter. | |
| static double | C2Pi () |
| 2 * Pi | |
| static double | CPi_2 () |
| Pi / 2. | |
| static double | CPi_4 () |
| Pi / 4. | |
| static double | C1_Pi () |
| 1 / Pi | |
| static double | C2_Pi () |
| 2 / Pi | |
| static double | CE () |
| E is the base of the natural logarithms. | |
| static double | CSqrt2 () |
| sqrt(2) | |
| static double | C1_Sqrt2 () |
| 1 / sqrt(2) | |
Utility functions | |
| static int | abs (int x) |
| Absolute value of x. | |
| static float | abs (float x) |
| Absolute value of x. | |
| static double | abs (double x) |
| Absolute value of x. | |
| static bool | isEqual (double s1, double s2, double eps=1e-6) |
| isEqual test for 2 numbers are equal or not within a torrence | |
| static float | sqrt (float x) |
| Square root value. | |
| static double | sqrt (double x) |
| Square root value. | |
| static void | sqrt (const float *in, float *out, size_t N) |
| Square root value. | |
| static float | rsqrt (float x) |
| 1/sqrt(x) | |
| static double | rsqrt (double x) |
| 1/sqrt(x) | |
| static void | rsqrt (const float *in, float *out, size_t N) |
| 1/sqrt(x) | |
| static float | exp (float x) |
| Exponential value of base e. | |
| static double | exp (double x) |
| Exponential value of base e. | |
| static void | exp (const float *in, float *out, size_t N) |
| Exponential value of base e. | |
| static float | log (float x) |
| Logarithms value of x (base e). | |
| static double | log (double x) |
| Logarithms value of x (base e). | |
| static void | log (const float *in, float *out, size_t N) |
| Logarithms value of x (base e). | |
| static float | pow (float x, float y) |
| Calculate x raises to the power y. | |
| static double | pow (double x, double y) |
| Calculate x raises to the power y. | |
Trigonometrical functions | |
| static float | sin (float x) |
| Sine value of x (in radian). | |
| static double | sin (double x) |
| Sine value of x (in radian). | |
| static void | sin (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
| static float | cos (float x) |
| Cosine value of x (in radian). | |
| static double | cos (double x) |
| Sine value of x (in radian). | |
| static void | cos (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
| static void | sincos (float x, float &s, float &c) |
| Sine and cosine value of x (in radian). | |
| static void | sincos (double x, double &s, double &c) |
| Sine and cosine value of x (in radian). | |
| static float | tan (float x) |
| Tangent value of x (in radian). | |
| static double | tan (double x) |
| Sine value of x (in radian). | |
| static void | tan (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
| static float | asin (float x) |
| Arc sine value (in radian) of x. | |
| static double | asin (double x) |
| Sine value of x (in radian). | |
| static void | asin (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
| static float | acos (float x) |
| Arc cosine value (in radian) of x. | |
| static double | acos (double x) |
| Sine value of x (in radian). | |
| static void | acos (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
| static float | atan (float x) |
| Arc tangent value (in radian) of x. | |
| static double | atan (double x) |
| Sine value of x (in radian). | |
| static void | atan (const float *in, float *out, size_t N) |
| Sine value of x (in radian). | |
Functions | |
| void | setConsistency (int cl=ConsistencyLevel::Default) |
| Set the consistency of the approximated functions. | |
| template<typename T> | |
| static T | min (const T &x1, const T &x2) |
| Minimum of 2 value. | |
| template<typename T> | |
| static T | min (const T &x1, const T &x2, const T &x3) |
| Minimum of 3 value. | |
| template<typename T> | |
| static T | min (const T &x1, const T &x2, const T &x3, const T &x4) |
| Minimum of 4 value. | |
| template<typename T> | |
| static T | min (const T &x1, const T &x2, const T &x3, const T &x4, const T &x5) |
| Minimum of 5 value. | |
| static float | min (const float *in, size_t N) |
| Minimum value. | |
| template<typename T> | |
| static T | max (const T &x1, const T &x2) |
| Maximum of 2 value. | |
| template<typename T> | |
| static T | max (const T &x1, const T &x2, const T &x3) |
| Maximum of 3 value. | |
| template<typename T> | |
| static T | max (const T &x1, const T &x2, const T &x3, const T &x4) |
| Maximum of 4 value. | |
| template<typename T> | |
| static T | max (const T &x1, const T &x2, const T &x3, const T &x4, const T &x5) |
| Maximum of 5 value. | |
| static float | max (const float *in, size_t N) |
| Maximum value. | |
| static float | sum (const float *in, size_t N) |
| Summation. | |
| static float | rcp (float x) |
| 1/x | |
| template<class Rep, class ErrChk> | |
| static Rep::value_type | min (Mat< Rep, ErrChk > &m) |
| Min. | |
| template<class Rep, class ErrChk> | |
| static Rep::value_type | max (Mat< Rep, ErrChk > &m) |
| Max. | |
| template<class Rep, class ErrChk> | |
| static Rep::value_type | sum (Mat< Rep, ErrChk > &m) |
| Sum. | |
| template<class Rep, class ErrChk> | |
| static void | rcp (Mat< Rep, ErrChk > &m) |
| 1/x per element | |
| template<class Rep, class ErrChk> | |
| static void | sqrt (Mat< Rep, ErrChk > &m) |
| Square root value per element. | |
| template<class Rep, class ErrChk> | |
| static void | rsqrt (Mat< Rep, ErrChk > &m) |
| 1/sqrt(x) per element | |
| template<class Rep, class ErrChk> | |
| static void | exp (Mat< Rep, ErrChk > &m) |
| Exponential value per element. | |
| template<class Rep, class ErrChk> | |
| static void | log (Mat< Rep, ErrChk > &m) |
| Logarithms value per element. | |
| template<class Rep, class ErrChk> | |
| static void | sin (Mat< Rep, ErrChk > &m) |
| Sine value per element (in radian). | |
| template<class Rep, class ErrChk> | |
| static void | cos (Mat< Rep, ErrChk > &m) |
| Cosine value per element (in radian). | |
| template<class Rep, class ErrChk> | |
| static void | tan (Mat< Rep, ErrChk > &m) |
| Tangent value per element (in radian). | |
| template<class Rep, class ErrChk> | |
| static void | asin (Mat< Rep, ErrChk > &m) |
| Arc sine value per element (in radian). | |
| template<class Rep, class ErrChk> | |
| static void | acos (Mat< Rep, ErrChk > &m) |
| Arc cosine value per element (in radian). | |
| template<class Rep, class ErrChk> | |
| static void | atan (Mat< Rep, ErrChk > &m) |
| Arc tangent value per element (in radian). | |
|
|
Set the consistency of the approximated functions.
|
1.4.6-NO