E.V.E
v2023.02.15
Arithmetic operations

Detailed Description

Core arithmetic functions

Variables

constexpr callable_abs_ eve::abs = {}
 Computes the absolute value of the parameter. More...
 
constexpr callable_absmax_ eve::absmax = {}
 Computes the absolute value of the maximal element. More...
 
constexpr callable_absmin_ eve::absmin = {}
 Computes the absolute value of the minimal element. More...
 
constexpr callable_add_ eve::add = {}
 Computes the sum of its arguments. More...
 
constexpr callable_agm_ eve::agm = {}
 Computes the arithmetic-geometric mean. More...
 
constexpr callable_average_ eve::average = {}
 Computes the arithmetic mean of its arguments. More...
 
constexpr callable_ceil_ eve::ceil = {}
 Computes the smallest integer not less than the input. More...
 
constexpr callable_clamp_ eve::clamp = {}
 Computes the largest integer not greater than the input. More...
 
constexpr callable_conj_ eve::conj = {}
 Computes the the conjugate value. More...
 
constexpr callable_copysign_ eve::copysign = {}
 Computes the elementwise composition of a value with the magnitude of the first parameter and the bit of sign of the second one. More...
 
constexpr callable_dec_ eve::dec = {}
 return the input decremented by 1. More...
 
constexpr callable_dist_ eve::dist = {}
 Computes the distance of its arguments. More...
 
constexpr callable_div_ eve::div = {}
 Computes the division of multiple values. More...
 
constexpr callable_fdim_ eve::fdim = {}
 Computes the positive difference between the two parameters. More...
 
constexpr callable_floor_ eve::floor = {}
 Computes the largest integer not greater than the input. More...
 
constexpr callable_fmod_ eve::fmod = {}
 Alias of eve::pedantic(eve::rem).
 
constexpr callable_frac_ eve::frac = {}
 Computes the fractional part of the input. More...
 
constexpr callable_fracscale_ eve::fracscale = {}
 Computes the reduced part of the scaled input. More...
 
constexpr callable_inc_ eve::inc = {}
 return the input incremented by one. More...
 
constexpr callable_lerp_ eve::lerp = {}
 Computes the linear interpolation. More...
 
constexpr callable_manhattan_ eve::manhattan = {}
 Computes the manhattan norm ( \(l_1\)) of its arguments. More...
 
constexpr callable_max_ eve::max = {}
 Computes the maximum of its arguments. More...
 
constexpr callable_maxabs_ eve::maxabs = {}
 Computes the maximum of the absolute value of its arguments. More...
 
constexpr callable_maxmag_ eve::maxmag = {}
 Computes the maximum of the absolute value of its arguments. More...
 
constexpr callable_min_ eve::min = {}
 Computes the minimum of its arguments. More...
 
constexpr callable_minabs_ eve::minabs = {}
 Computes the minimum of the absolute value of its arguments. More...
 
constexpr callable_minmag_ eve::minmag = {}
 Computes the maximum of the absolute value of its arguments. More...
 
constexpr callable_minmax_ eve::minmax = {}
 Computes the minimum and maximum of its arguments. More...
 
constexpr callable_minus_ eve::minus = {}
 Computes the opposite of the parameter that must be signed. More...
 
constexpr callable_modf_ eve::modf = {}
 Computes the elementwise pair of fractional and integral parts of the value,. More...
 
constexpr callable_mul_ eve::mul = {}
 Computes the sum of its arguments. More...
 
constexpr callable_nearest_ eve::nearest = {}
 Computes the nearest integer to the input. More...
 
constexpr callable_negabsmax_ eve::negabsmax = {}
 Computes the negated absolute value of the maximal element. More...
 
constexpr callable_negabsmin_ eve::negabsmin = {}
 Computes the negated absolute value of the minimal element. More...
 
constexpr callable_negate_ eve::negate = {}
 Computes the elementwise product of the first parameter by the sign of the second. More...
 
constexpr callable_negatenz_ eve::negatenz = {}
 Computes the elementwise product of the first parameter by the never zero sign of the second. More...
 
constexpr callable_negmaxabs_ eve::negmaxabs = {}
 Computes the negated value of the element of the maximal absolute value. More...
 
constexpr callable_negminabs_ eve::negminabs = {}
 Computes the negated value of the element of the minimal absolute value. More...
 
constexpr callable_oneminus_ eve::oneminus = {}
 Computes the value of one minus the input. More...
 
constexpr callable_plus_ eve::plus = {}
 Computes the opposite of the parameter that must be signed. More...
 
constexpr callable_rat_ eve::rat = {}
 Computes a rational approximation. More...
 
constexpr callable_rec_ eve::rec = {}
 Computes the inverse of the parameter. More...
 
constexpr callable_rem_ eve::rem = {}
 Computes the remainder after division. More...
 
constexpr callable_round_ eve::round = {}
 Computes the integer nearest to the input. More...
 
constexpr callable_roundscale_ eve::roundscale = {}
 Computes the scaled input rounding. More...
 
constexpr callable_rshl_ eve::rshl = {}
 Computes the arithmetic left/right shift operation according to shift sign. More...
 
constexpr callable_rshr_ eve::rshr = {}
 Computes the arithmetic right/left shift operation according to shift sign. More...
 
constexpr callable_rsqrt_ eve::rsqrt = {}
 Computes the inverse of the square root of the parameter. More...
 
constexpr callable_saturate_ eve::saturate = {}
 Computes the saturation of a value in a type. More...
 
constexpr callable_shl_ eve::shl = {}
 Computes the arithmetic left shift operation. More...
 
constexpr callable_shr_ eve::shr = {}
 Computes the arithmetic right shift operation. More...
 
constexpr callable_sign_ eve::sign = {}
 Computes the sign of the parameter. More...
 
constexpr callable_sign_alternate_ eve::sign_alternate = {}
 Computes \((-1)^n\). More...
 
constexpr callable_signnz_ eve::signnz = {}
 Computes the never zero sign of the parameter. More...
 
constexpr callable_sqr_ eve::sqr = {}
 Computes the square of the parameter. More...
 
constexpr callable_sqr_abs_ eve::sqr_abs = {}
 Computes the square of the absolute value of the parameter. More...
 
constexpr callable_sqrt_ eve::sqrt = {}
 Computes the square root of the parameter. More...
 
constexpr callable_sub_ eve::sub = {}
 Computes the sum of its arguments. More...
 
constexpr callable_trunc_ eve::trunc = {}
 Computes the integral part of x with the same sign as x. More...