30 #if defined(__cpp_lib_gcd_lcm) || !defined(NUMCPP_NO_USE_BOOST)
36 #ifndef NUMCPP_NO_USE_BOOST
37 #include "boost/integer/common_factor_rt.hpp"
40 #ifdef __cpp_lib_gcd_lcm
58 template<
typename dtype>
59 dtype
lcm(dtype inValue1, dtype inValue2) noexcept
63 #ifdef __cpp_lib_gcd_lcm
70 #ifndef NUMCPP_NO_USE_BOOST
81 template<
typename dtype>
86 return boost::integer::lcm_range(inArray.
cbegin(), inArray.
cend()).first;
#define STATIC_ASSERT_INTEGER(dtype)
Definition: StaticAsserts.hpp:40
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1216
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1524
Definition: Coordinate.hpp:45
dtype lcm(dtype inValue1, dtype inValue2) noexcept
Definition: lcm.hpp:59
dtype lcm(const NdArray< dtype > &inArray)
Definition: lcm.hpp:82