libcuspatial  24.04.00
Loading...
Searching...
No Matches
points_in_range.cuh
1/*
2 * Copyright (c) 2022, NVIDIA CORPORATION.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
20
21#include <rmm/cuda_stream_view.hpp>
22
23#include <thrust/iterator/iterator_traits.h>
24
25namespace cuspatial {
26
60template <class InputIt, class T>
61typename thrust::iterator_traits<InputIt>::difference_type count_points_in_range(
62 vec_2d<T> vertex_1,
63 vec_2d<T> vertex_2,
64 InputIt points_first,
65 InputIt points_last,
66 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
67
108template <class InputIt, class OutputIt, class T>
109OutputIt copy_points_in_range(vec_2d<T> vertex_1,
110 vec_2d<T> vertex_2,
111 InputIt points_first,
112 InputIt points_last,
113 OutputIt output_points_first,
114 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
115
120} // namespace cuspatial
121
122#include <cuspatial/detail/points_in_range.cuh>