Module ops

Source
Expand description

Re-exported relevant operator traits from dashu-base

Traits§

Abs
Absolute value.
BitTest
Bit query for integers
CubicRoot
Compute the cubic root of the number.
CubicRootRem
Computer the floored cubic root of the number and return the remainder at the same time.
DivEuclid
Compute Euclidean quotient.
DivRem
Compute quotient and remainder at the same time.
DivRemAssign
Compute quotient inplace and return remainder at the same time.
DivRemEuclid
Compute Euclidean quotient and remainder at the same time.
EstimatedLog2
Fast estimation of the binary logarithm of a number
ExtendedGcd
Compute the greatest common divisor between self and the other operand, and return both the common divisor g and the Bézout coefficients respectively.
Gcd
Compute the greatest common divisor.
PowerOfTwo
Functions related to the power of two.
RemEuclid
Compute Euclidean remainder.
SquareRoot
Compute the square root of the number.
SquareRootRem
Computer the floored square root of the number and return the remainder at the same time.
UnsignedAbs
Unsigned absolute value.