filling.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION.
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 
15 namespace CUDF_EXPORT cudf {
50  size_type begin,
51  size_type end,
52  scalar const& value,
54 
78 std::unique_ptr<column> fill(
79  column_view const& input,
80  size_type begin,
81  size_type end,
82  scalar const& value,
85 
114 std::unique_ptr<table> repeat(
115  table_view const& input_table,
116  column_view const& count,
119 
139 std::unique_ptr<table> repeat(
140  table_view const& input_table,
141  size_type count,
144 
170 std::unique_ptr<column> sequence(
171  size_type size,
172  scalar const& init,
173  scalar const& step,
176 
199 std::unique_ptr<column> sequence(
200  size_type size,
201  scalar const& init,
204 
229 std::unique_ptr<cudf::column> calendrical_month_sequence(
230  size_type size,
231  scalar const& init,
232  size_type months,
235  // end of group
237 } // 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:40
A set of cudf::column_view's of the same size.
Definition: table_view.hpp:189
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.
detail::cccl_async_resource_ref< cuda::mr::resource_ref< cuda::mr::device_accessible > > device_async_resource_ref
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:84
cuDF interfaces
Definition: host_udf.hpp:26
Type declarations for libcudf.