Skip to content

Commit 62a9fa4

Browse files
committed
drop unused includes in isin kernel implementation
1 parent 44661ba commit 62a9fa4

File tree

1 file changed

+2
-5
lines changed
  • dpctl/tensor/libtensor/include/kernels/sorting

1 file changed

+2
-5
lines changed

dpctl/tensor/libtensor/include/kernels/sorting/isin.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@
2525

2626
#pragma once
2727

28-
#include <algorithm>
2928
#include <cstddef>
30-
#include <cstdint>
3129
#include <sycl/sycl.hpp>
3230
#include <vector>
3331

@@ -94,9 +92,8 @@ struct IsinFunctor
9492

9593
// lower_bound returns the first pos such that bool(hay[pos] <
9694
// needle_v) is false, i.e. needle_v <= hay[pos]
97-
pos = static_cast<std::size_t>(
98-
search_sorted_detail::lower_bound_indexed_impl(
99-
hay_tp, zero, hay_nelems, needle_v, comp, hay_indexer));
95+
pos = search_sorted_detail::lower_bound_indexed_impl(
96+
hay_tp, zero, hay_nelems, needle_v, comp, hay_indexer);
10097
bool out = (pos == hay_nelems ? false : hay_tp[pos] == needle_v);
10198
out_tp[out_indexer(i)] = (invert) ? !out : out;
10299
}

0 commit comments

Comments
 (0)