2#ifndef TETL_NUMERIC_LCM_HPP
3#define TETL_NUMERIC_LCM_HPP
18template <
typename M,
typename N>
22 return (m * n) /
gcd(m, n);
constexpr auto gcd(M m, N n) noexcept -> etl::common_type_t< M, N >
Computes the greatest common divisor of the integers m and n.
Definition gcd.hpp:16
constexpr auto lcm(M m, N n) -> common_type_t< M, N >
Computes the least common multiple of the integers m and n.
Definition lcm.hpp:20
Definition adjacent_find.hpp:8
constexpr bool is_integral_v
Definition is_integral.hpp:28
constexpr bool is_same_v
Definition is_same.hpp:11
typename common_type< T... >::type common_type_t
Definition common_type.hpp:50