51 template<
typename dtype>
59 [](dtype& value) noexcept ->
void
61 if (std::isnan(value))
63 value = DtypeInfo<dtype>::min();
67 return argmax(arrayCopy, inAxis);
#define STATIC_ASSERT_FLOAT(dtype)
Definition: StaticAsserts.hpp:50
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:138
iterator end() noexcept
Definition: NdArrayCore.hpp:1576
iterator begin() noexcept
Definition: NdArrayCore.hpp:1268
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition: StlAlgorithms.hpp:225
Definition: Cartesian.hpp:40
NdArray< uint32 > argmax(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: argmax.hpp:46
Axis
Enum To describe an axis.
Definition: Types.hpp:47
NdArray< uint32 > nanargmax(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: nanargmax.hpp:52