50 template<
typename dtype>
55 const auto comp = [](
const dtype lhs,
const dtype rhs)
noexcept ->
bool {
return lhs < rhs; };
57 const auto set1 =
unique(inArray1);
58 const auto set2 =
unique(inArray2);
60 std::vector<dtype> res(set1.size() + set2.size());
#define STATIC_ASSERT_ARITHMETIC_OR_COMPLEX(dtype)
Definition: StaticAsserts.hpp:56
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
OutputIt set_union(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination) noexcept
Definition: StlAlgorithms.hpp:645
Definition: Cartesian.hpp:40
NdArray< dtype > unique(const NdArray< dtype > &inArray)
Definition: unique.hpp:53
NdArray< dtype > union1d(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: union1d.hpp:51