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
83 #ifdef __cpp_lib_hypot
84 return std::hypot(
static_cast<double>(inValue1),
static_cast<double>(inValue2),
static_cast<double>(inValue3));
105 template<
typename dtype>
119 [](dtype inValue1, dtype inValue2) noexcept ->
double
120 { 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:1221
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4092
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1529
iterator begin() noexcept
Definition: NdArrayCore.hpp:1171
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition: StlAlgorithms.hpp:784
constexpr dtype sqr(dtype inValue) noexcept
Definition: sqr.hpp:44
Definition: Coordinate.hpp:45
double hypot(dtype inValue1, dtype inValue2) noexcept
Definition: hypot.hpp:56
NdArray< double > hypot(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: hypot.hpp:106
auto sqrt(dtype inValue) noexcept
Definition: sqrt.hpp:48