 |
NumCpp
1.0
A C++ implementation of the Python Numpy library
|
Go to the documentation of this file.
59 template<
typename dtype>
64 dtype maxValue = inArray.
max().
item();
82 [&outArray](dtype value) noexcept ->
void
111 template<
typename dtype>
121 dtype maxValue = inArray.
max().
item();
140 [&outArray, &inWeights, &counter](dtype value) noexcept ->
void
142 outArray[value] += inWeights[counter++];
#define STATIC_ASSERT_INTEGER(dtype)
Definition: StaticAsserts.hpp:41
value_type item() const
Definition: NdArrayCore.hpp:2950
Shape shape() const noexcept
Definition: NdArrayCore.hpp:4296
void for_each(InputIt first, InputIt last, UnaryFunction f) noexcept
Definition: StlAlgorithms.hpp:214
NdArray< dtype > max(Axis inAxis=Axis::NONE) const
Definition: NdArrayCore.hpp:2971
NdArray< dtype > clip(value_type inMin, value_type inMax) const
Definition: NdArrayCore.hpp:2307
std::uint32_t uint32
Definition: Types.hpp:41
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1491
NdArray< dtype > & zeros() noexcept
Definition: NdArrayCore.hpp:4609
Definition: Coordinate.hpp:45
Holds info about the dtype.
Definition: DtypeInfo.hpp:41
std::uint16_t uint16
Definition: Types.hpp:42
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
NdArray< dtype > max(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition: max.hpp:46
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1147
NdArray< dtype > bincount(const NdArray< dtype > &inArray, uint16 inMinLength=1)
Definition: bincount.hpp:60