31#include <unordered_set>
52 template<
typename dtype>
57 auto repeats = std::unordered_set<dtype>{};
58 auto count = std::unordered_set<dtype>{};
60 for (
const auto& value :
inArray)
62 if (count.count(value) > 0)
87 template<
typename dtype>
95 for (
const auto& value :
inArray)
97 if (count.count(value) > 0)
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
iterator begin() noexcept
Definition NdArrayCore.hpp:1315
Definition Cartesian.hpp:40
NdArray< dtype > find_duplicates(const NdArray< dtype > &inArray)
Definition find_duplicates.hpp:53
NdArray< dtype > sort(const NdArray< dtype > &inArray, Axis inAxis=Axis::NONE)
Definition sort.hpp:46
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
Definition StdComplexOperators.hpp:125