 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
58 template<
typename dtype>
63 dtype maxValue = inArray.
max().
item();
81 [&outArray](dtype value) noexcept ->
void
110 template<
typename dtype>
120 dtype maxValue = inArray.
max().
item();
139 [&outArray, &inWeights, &counter](dtype value) noexcept ->
void
141 outArray[value] += inWeights[counter++];
#define STATIC_ASSERT_INTEGER(dtype)
Definition: StaticAsserts.hpp:40
value_type item() const
Definition: NdArrayCore.hpp:2975
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4356
NdArray< dtype > max(Axis inAxis=Axis::NONE) const
Definition: NdArrayCore.hpp:2996
void for_each(InputIt first, InputIt last, UnaryFunction f)
Definition: StlAlgorithms.hpp:213
NdArray< dtype > clip(value_type inMin, value_type inMax) const
Definition: NdArrayCore.hpp:2311
std::uint32_t uint32
Definition: Types.hpp:40
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1487
NdArray< dtype > & zeros() noexcept
Definition: NdArrayCore.hpp:4670
Definition: Coordinate.hpp:44
Holds info about the dtype.
Definition: DtypeInfo.hpp:40
std::uint16_t uint16
Definition: Types.hpp:41
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:36
NdArray< dtype > max(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: max.hpp:45
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1143
NdArray< dtype > bincount(const NdArray< dtype > &inArray, uint16 inMinLength=1)
Definition: bincount.hpp:59