filling.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <cudf/types.hpp>
10 #include <cudf/utilities/export.hpp>
12 
13 #include <memory>
14 
20 namespace CUDF_EXPORT cudf {
53  size_type begin,
54  size_type end,
55  scalar const& value,
57 
81 std::unique_ptr<column> fill(
82  column_view const& input,
83  size_type begin,
84  size_type end,
85  scalar const& value,
88 
117 std::unique_ptr<table> repeat(
118  table_view const& input_table,
119  column_view const& count,
122 
142 std::unique_ptr<table> repeat(
143  table_view const& input_table,
147 
173 std::unique_ptr<column> sequence(
174  size_type size,
175  scalar const& init,
176  scalar const& step,
179 
202 std::unique_ptr<column> sequence(
203  size_type size,
204  scalar const& init,
207 
232 std::unique_ptr<cudf::column> calendrical_month_sequence(
233  size_type size,
234  scalar const& init,
235  size_type months,
238  // end of group
240 } // namespace CUDF_EXPORT cudf
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
A non-owning, mutable view of device data as a column of elements, some of which may be null as indic...
An owning class to represent a singular value.
Definition: scalar.hpp:41
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:206
APIs for querying the default CUDA stream and per-thread default stream status.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::resource_ref< cuda::mr::device_accessible > device_async_resource_ref
std::unique_ptr< column > count(strings_column_view const &input, string_scalar const &target, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Returns the number of times the given target string matches in each string.
std::unique_ptr< column > sequence(size_type size, scalar const &init, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Fills a column with a sequence of value specified by an initial value and a step of 1.
void fill_in_place(mutable_column_view &destination, size_type begin, size_type end, scalar const &value, rmm::cuda_stream_view stream=cudf::get_default_stream())
Fills a range of elements in-place in a column with a scalar value.
std::unique_ptr< column > fill(column_view const &input, size_type begin, size_type end, scalar const &value, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Fills a range of elements in a column out-of-place with a scalar value.
std::unique_ptr< table > repeat(table_view const &input_table, size_type count, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Repeat rows of a Table.
std::unique_ptr< cudf::column > calendrical_month_sequence(size_type size, scalar const &init, size_type months, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Generate a sequence of timestamps beginning at init and incrementing by months for each successive el...
int32_t size_type
Row index type for columns and tables.
Definition: types.hpp:76
APIs for getting and setting the current device memory resource.
cuDF interfaces
Definition: host_udf.hpp:26
Type declarations for libcudf.