Scalar

## Functions

template<typename T >
constexpr 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...

## ◆ abs()

template<typename T >
 constexpr detail::remove_complex_t nil::crypto3::algebra::abs ( T x )
constexpr

computes the absolute value

Parameters
 x argument
Returns

Computes the absolute value.

## ◆ conj()

template<typename T >
 constexpr T nil::crypto3::algebra::conj ( T x )
constexpr

computes the complex conjugate

Parameters
 x argument
Returns

Computes the complex conjugate.

## ◆ exponentiate()

 constexpr double nil::crypto3::algebra::exponentiate ( double x, int n )
constexpr

computes exponents

Parameters
 x base n exponent
Returns

Computes the exponentiation of a value to integer powers.

## ◆ nthroot()

 constexpr double nil::crypto3::algebra::nthroot ( double x, int n )
constexpr

computes the th root

Parameters
 x argument n degree
Returns

Computes the th root.

## ◆ sqrt() [1/2]

 constexpr double nil::crypto3::algebra::sqrt ( double x )
constexpr

computes the square root

Parameters
 x argument
Returns

Computes the square root.

## ◆ sqrt() [2/2]

 constexpr float nil::crypto3::algebra::sqrt ( float x )
constexpr

computes the square root

Parameters
 x argument
Returns

Computes the square root.