50 template<
typename dtype>
55 const auto comp = [](
const dtype lhs,
const dtype rhs) noexcept ->
bool
60 const auto set1 =
unique(inArray1);
61 const auto set2 =
unique(inArray2);
63 std::vector<dtype> res(set1.size() + set2.size());
65 set2.begin(), set2.end(), res.begin(), comp);
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:50
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:72
OutputIt set_union(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept
Definition: StlAlgorithms.hpp:586
Definition: Coordinate.hpp:45
NdArray< dtype > union1d(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: union1d.hpp:51
NdArray< dtype > unique(const NdArray< dtype > &inArray)
Definition: unique.hpp:54