MCPcopy Create free account
hub / github.com/comaps/comaps / LCM

Function LCM

libs/base/math.hpp:166–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164// Least Common Multiple.
165template <typename Number, typename EnableIf = typename std::enable_if_t<std::is_integral_v<Number>, void>>
166Number constexpr LCM(Number const a, Number const b)
167{
168 return a / GCD(a, b) * b;
169}
170
171// Calculate hash for the pair of values.
172template <typename T1, typename T2>

Callers 4

GetOptimalBatchSizeFunction · 0.85
GetOffsetAlignmentMethod · 0.85
GetSizeAlignmentMethod · 0.85
UNIT_TESTFunction · 0.85

Calls 1

GCDFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68