 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
55 template<
typename dtype>
57 dtype
nan =
static_cast<dtype
>(0.0),
64 [
nan, posInf, negInf](dtype& value)
70 else if (
isinf(value))
72 if (value >
static_cast<dtype
>(0.0))
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition: StlAlgorithms.hpp:213
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:43
iterator end() noexcept
Definition: NdArrayCore.hpp:1431
NdArray< dtype > nan_to_num(NdArray< dtype > inArray, dtype nan=static_cast< dtype >(0.0), dtype posInf=DtypeInfo< dtype >::max(), dtype negInf=DtypeInfo< dtype >::min())
Definition: nan_to_num.hpp:56
bool isinf(dtype inValue) noexcept
Definition: isinf.hpp:51
const double nan
NaN.
Definition: Constants.hpp:44
Definition: Coordinate.hpp:44
Holds info about the dtype.
Definition: DtypeInfo.hpp:40
iterator begin() noexcept
Definition: NdArrayCore.hpp:1087