32#if defined(__cpp_lib_gcd_lcm) || !defined(NUMCPP_NO_USE_BOOST)
38#ifndef NUMCPP_NO_USE_BOOST
39#include "boost/integer/common_factor_rt.hpp"
56 template<
typename dtype>
57 dtype
lcm(dtype inValue1, dtype inValue2)
noexcept
61#ifdef __cpp_lib_gcd_lcm
68#ifndef NUMCPP_NO_USE_BOOST
79 template<
typename dtype>
84 return boost::integer::lcm_range(inArray.
cbegin(), inArray.
cend()).first;
#define STATIC_ASSERT_INTEGER(dtype)
Definition: StaticAsserts.hpp:43
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1365
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1673
Definition: Cartesian.hpp:40
dtype lcm(dtype inValue1, dtype inValue2) noexcept
Definition: lcm.hpp:57
dtype lcm(const NdArray< dtype > &inArray)
Definition: lcm.hpp:80