53 template<
typename dtype>
58 const auto comp = [](
const dtype lhs,
const dtype rhs)
noexcept ->
bool {
return lhs < rhs; };
60 const auto set1 =
unique(inArray1);
61 const auto set2 =
unique(inArray2);
63 std::vector<dtype> res(set1.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_difference(InputIt1 first1, InputIt1 last1, InputIt2 first2, InputIt2 last2, OutputIt destination)
Definition: StlAlgorithms.hpp:530
Definition: Cartesian.hpp:40
NdArray< dtype > unique(const NdArray< dtype > &inArray)
Definition: unique.hpp:53
NdArray< dtype > setdiff1d(const NdArray< dtype > &inArray1, const NdArray< dtype > &inArray2)
Definition: setdiff1d.hpp:54