36template<
typename T1,
typename T2,
typename TC = common_t<T1,T2>>
42 return lcm_compute(
static_cast<TC
>(a),
static_cast<TC
>(
b));
56template<
typename T1,
typename T2>
constexpr common_t< T1, T2 > gcd(const T1 a, const T2 b) noexcept
Compile-time greatest common divisor (GCD) function.
Definition: gcd.hpp:76
UnitType abs(const UnitType x) noexcept
Compute absolute value.
Definition: math.h:721
constexpr common_t< T1, T2 > lcm(const T1 a, const T2 b) noexcept
Compile-time least common multiple (LCM) function.
Definition: lcm.hpp:59
Definition: Eigen_Colamd.h:50
constexpr T lcm_compute(const T a, const T b) noexcept
Definition: lcm.hpp:30
constexpr TC lcm_type_check(const T1 a, const T2 b) noexcept
Definition: lcm.hpp:39