filling.hpp
前往此文件的文档。
1 /*
2  * Copyright (c) 2019-2024, 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  * https://apache.ac.cn/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 
19 #include <cudf/types.hpp>
21 #include <cudf/utilities/export.hpp>
23 
24 #include <memory>
25 
26 namespace CUDF_EXPORT cudf {
61  size_type begin,
62  size_type end,
63  scalar const& value,
65 
89 std::unique_ptr<column> fill(
90  column_view const& input,
91  size_type begin,
92  size_type end,
93  scalar const& value,
96 
125 std::unique_ptr<table> repeat(
126  table_view const& input_table,
127  column_view const& count,
130 
150 std::unique_ptr<table> repeat(
151  table_view const& input_table,
152  size_type count,
155 
180 std::unique_ptr<column> sequence(
181  size_type size,
182  scalar const& init,
183  scalar const& step,
186 
208 std::unique_ptr<column> sequence(
209  size_type size,
210  scalar const& init,
213 
238 std::unique_ptr<cudf::column> calendrical_month_sequence(
239  size_type size,
240  scalar const& init,
241  size_type months,
244  // end of group
246 } // namespace CUDF_EXPORT cudf
表示设备数据作为元素列的非拥有、不可变视图,其中一些元素可能为空,如...
表示设备数据作为元素列的非拥有、可变视图,其中一些元素可能为空,如...
表示单个值的拥有类。
定义: scalar.hpp:51
一组大小相同的 cudf::column_view。
rmm::cuda_stream_view const get_default_stream()
获取当前的默认流。
rmm::device_async_resource_ref get_current_device_resource_ref()
获取当前的设备内存资源引用。
cuda::mr::async_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())
使用由初始值和步长为 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())
使用标量值就地填充列中的元素范围。
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())
使用标量值非就地填充列中的元素范围。
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())
重复表中的行。
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())
生成从 init 开始的时间戳序列,每个后续元素递增月份...
int32_t size_type
用于列和表的行索引类型。
定义: types.hpp:95
cuDF 接口
定义: host_udf.hpp:37
libcudf 的类型声明。