56 template<
typename dtype>
57 double hypot(dtype inValue1, dtype inValue2) noexcept
61 return std::hypot(
static_cast<double>(inValue1),
static_cast<double>(inValue2));
80 template<
typename dtype>
81 double hypot(dtype inValue1, dtype inValue2, dtype inValue3) noexcept
85 #ifdef __cpp_lib_hypot
86 return std::hypot(
static_cast<double>(inValue1),
87 static_cast<double>(inValue2),
88 static_cast<double>(inValue3));
111 template<
typename dtype>
122 [](dtype inValue1, dtype inValue2) noexcept ->
double
124 return hypot(inValue1, inValue2);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1270
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4483
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1614
iterator begin() noexcept
Definition: NdArrayCore.hpp:1214
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:702
constexpr dtype sqr(dtype inValue) noexcept
Definition: sqr.hpp:44
Definition: Coordinate.hpp:45
double hypot(dtype inValue1, dtype inValue2) noexcept
Definition: hypot.hpp:57
NdArray< double > hypot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: hypot.hpp:112
auto sqrt(dtype inValue) noexcept
Definition: sqrt.hpp:50