52 template<
typename dtype>
57 std::vector<dtype> res(inArray1.
size() + inArray2.
size());
58 const std::set<dtype> in1(inArray1.
cbegin(), inArray1.
cend());
59 const std::set<dtype> in2(inArray2.
cbegin(), inArray2.
cend());
62 res.resize(iter - res.begin());
#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
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1365
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1673
OutputIt set_intersection(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept
Definition: StlAlgorithms.hpp:587
Definition: Cartesian.hpp:40
NdArray< dtype > intersect1d(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: intersect1d.hpp:53