Scalar
Functions | |
template<typename T > | |
constexpr nil::crypto3::detail::remove_complex_t< T > | nil::crypto3::algebra::abs (T x) |
computes the absolute value More... | |
template<typename T > | |
constexpr T | nil::crypto3::algebra::conj (T x) |
computes the complex conjugate More... | |
constexpr double | nil::crypto3::algebra::exponentiate (double x, int n) |
computes exponents More... | |
constexpr double | nil::crypto3::algebra::nthroot (double x, int n) |
computes the th root More... | |
constexpr double | nil::crypto3::algebra::sqrt (double x) |
computes the square root More... | |
constexpr float | nil::crypto3::algebra::sqrt (float x) |
computes the square root More... | |
Detailed Description
Function Documentation
◆ abs()
template<typename T >
|
constexpr |
computes the absolute value
- Parameters
-
x argument
- Returns
Computes the absolute value.
◆ conj()
template<typename T >
|
constexpr |
computes the complex conjugate
- Parameters
-
x argument
- Returns
Computes the complex conjugate.
◆ exponentiate()
|
constexpr |
computes exponents
- Parameters
-
x base n exponent
- Returns
Computes the exponentiation of a value to integer powers.
◆ nthroot()
|
constexpr |
computes the th root
- Parameters
-
x argument n degree
- Returns
Computes the th root.
◆ sqrt() [1/2]
|
constexpr |
computes the square root
- Parameters
-
x argument
- Returns
Computes the square root.
◆ sqrt() [2/2]
|
constexpr |
computes the square root
- Parameters
-
x argument
- Returns
Computes the square root.