|
tesseract++ 0.0.1
N-dimensional tensor library for embedded systems
|
Functions | |
| template<typename T > | |
| T | atan (T x) |
| template<typename T > | |
| T | atan2 (T x) |
| template<typename T > | |
| T | cos (T x) |
| template<typename T > | |
| T | divide (T x, T y) |
| template<typename T > | |
| constexpr T | sqrt (T x) noexcept |
| Compute the square root of a floating-point value. | |
| template<typename T > | |
| constexpr T | abs (T x) noexcept |
| Compute the absolute value of a numeric value. | |
| template<typename T > | |
| constexpr T | sin (T x) noexcept |
| Compute the sine of a floating-point value (radians). | |
| template<typename T > | |
| constexpr T | cos (T x) noexcept |
| Compute the cosine of a floating-point value (radians). | |
| template<typename T > | |
| constexpr T | acos (T x) noexcept |
| Compute the arc cosine of a floating-point value. | |
|
constexprnoexcept |
Compute the absolute value of a numeric value.
Maps to hardware instructions via compiler builtins for float, double, int, and long. Falls back to branch for other types.
| T | Numeric type. |
| x | Input value. |
x.
|
constexprnoexcept |
Compute the arc cosine of a floating-point value.
| T | Floating-point type (float or double). |
| x | Value in [-1, 1]. |
| T math::atan | ( | T | x | ) |
| T math::atan2 | ( | T | x | ) |
| T math::cos | ( | T | x | ) |
|
constexprnoexcept |
Compute the cosine of a floating-point value (radians).
| T | Floating-point type (float or double). |
| x | Angle in radians. |
x. | T math::divide | ( | T | x, |
| T | y | ||
| ) |
|
constexprnoexcept |
Compute the sine of a floating-point value (radians).
| T | Floating-point type (float or double). |
| x | Angle in radians. |
x.
|
constexprnoexcept |
Compute the square root of a floating-point value.
Maps to a single hardware instruction (sqrtss/sqrtsd) via compiler builtins. Errors on negative input via MyErrorHandler.
| T | Floating-point type (float or double). |
| x | Non-negative input value. |
x. 