 |
NumCpp
2.4.0
A Templatized Header Only C++ Implementation of the Python NumPy Library
|
Go to the documentation of this file.
53 template<
typename dtype>
58 std::vector<dtype> res(inArray1.
size() + inArray2.
size());
59 const std::set<dtype> in1(inArray1.
cbegin(), inArray1.
cend());
60 const std::set<dtype> in2(inArray2.
cbegin(), inArray2.
cend());
63 in2.begin(), in2.end(), res.begin());
64 res.resize(iter - res.begin());
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:37
NdArray< dtype > intersect1d(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: intersect1d.hpp:54
size_type size() const noexcept
Definition: NdArrayCore.hpp:4370
const_iterator cend() const noexcept
Definition: NdArrayCore.hpp:1487
Definition: Coordinate.hpp:44
const_iterator cbegin() const noexcept
Definition: NdArrayCore.hpp:1143
OutputIt set_intersection(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept
Definition: StlAlgorithms.hpp:539