55 template<
typename dtype>
56 double hypot(dtype inValue1, dtype inValue2)
noexcept
60 return std::hypot(
static_cast<double>(inValue1),
static_cast<double>(inValue2));
78 template<
typename dtype>
79 double hypot(dtype inValue1, dtype inValue2, dtype inValue3)
noexcept
84 return std::hypot(
static_cast<double>(inValue1),
static_cast<double>(inValue2),
static_cast<double>(inValue3));
86 return std::sqrt(
utils::sqr(
static_cast<double>(inValue1)) +
utils::sqr(
static_cast<double>(inValue2)) +
105 template<
typename dtype>
110 [](dtype inValue1, dtype inValue2)
noexcept ->
double
111 {
return hypot(inValue1, inValue2); });
129 template<
typename dtype>
133 if (inArray1.
size() != inArray2.
size() || inArray1.
size() != inArray3.
size())
141 returnArray[i] =
hypot(inArray1[i], inArray2[i], inArray3[i]);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
size_type size() const noexcept
Definition NdArrayCore.hpp:4604
const Shape & shape() const noexcept
Definition NdArrayCore.hpp:4591
uint32 size_type
Definition NdArrayCore.hpp:156
NdArray< dtypeIn1 > & broadcaster(NdArray< dtypeIn1 > &inArray1, const NdArray< dtypeIn2 > &inArray2, const Function &function, const AdditionalFunctionArgs &&... additionalFunctionArgs)
Definition NdArrayBroadcast.hpp:52
constexpr dtype sqr(dtype inValue) noexcept
Definition sqr.hpp:42
Definition Cartesian.hpp:40
double hypot(dtype inValue1, dtype inValue2) noexcept
Definition hypot.hpp:56