54 template<
typename dtype>
56 dtype nan =
static_cast<dtype
>(0.),
64 [nan, posInf, negInf](dtype& value)
70 else if (
isinf(value))
72 if (value >
static_cast<dtype
>(0.))
#define STATIC_ASSERT_FLOAT(dtype)
Definition StaticAsserts.hpp:50
static constexpr dtype max() noexcept
Definition DtypeInfo.hpp:110
static constexpr dtype min() noexcept
Definition DtypeInfo.hpp:98
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
iterator end() noexcept
Definition NdArrayCore.hpp:1623
iterator begin() noexcept
Definition NdArrayCore.hpp:1315
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition StlAlgorithms.hpp:226
Definition Cartesian.hpp:40
bool isinf(dtype inValue) noexcept
Definition isinf.hpp:49
NdArray< dtype > nan_to_num(NdArray< dtype > inArray, dtype nan=static_cast< dtype >(0.), dtype posInf=DtypeInfo< dtype >::max(), dtype negInf=DtypeInfo< dtype >::min())
Definition nan_to_num.hpp:55