Files | |
file | lists/filling.hpp |
Column APIs for individual list sequence. | |
Functions | |
std::unique_ptr< column > | cudf::lists::sequences (column_view const &starts, column_view const &sizes, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
Create a lists column in which each row contains a sequence of values specified by a tuple of (start , size ) parameters. More... | |
std::unique_ptr< column > | cudf::lists::sequences (column_view const &starts, column_view const &steps, column_view const &sizes, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
Create a lists column in which each row contains a sequence of values specified by a tuple of (start , step , size ) parameters. More... | |
std::unique_ptr<column> cudf::lists::sequences | ( | column_view const & | starts, |
column_view const & | sizes, | ||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
Create a lists column in which each row contains a sequence of values specified by a tuple of (start
, size
) parameters.
Create a lists column in which each row is a sequence of values starting from a start
value, incrementing by one, and its cardinality is specified by a size
value. The start
and size
values used to generate each list is taken from the corresponding row of the input starts
and sizes
columns.
sizes
must be a column of integer types.sizes
column contains negative value, the output is undefined.cudf::logic_error | if sizes column is not of integer types. |
cudf::logic_error | if any input column has nulls. |
cudf::logic_error | if starts and sizes columns do not have the same size. |
std::overflow_error | if the output column would exceed the column size limit. |
starts | First values in the result sequences. |
sizes | Numbers of values in the result sequences. |
stream | CUDA stream used for device memory operations and kernel launches. |
mr | Device memory resource used to allocate the returned column's device memory. |
std::unique_ptr<column> cudf::lists::sequences | ( | column_view const & | starts, |
column_view const & | steps, | ||
column_view const & | sizes, | ||
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
Create a lists column in which each row contains a sequence of values specified by a tuple of (start
, step
, size
) parameters.
Create a lists column in which each row is a sequence of values starting from a start
value, incrementing by a step
value, and its cardinality is specified by a size
value. The values start
, step
, and size
used to generate each list is taken from the corresponding row of the input starts
, steps
, and sizes
columns.
sizes
must be a column of integer types.starts
and steps
columns must have the same type.sizes
column contains negative value, the output is undefined.cudf::logic_error | if sizes column is not of integer types. |
cudf::logic_error | if any input column has nulls. |
cudf::logic_error | if starts and steps columns have different types. |
cudf::logic_error | if starts , steps , and sizes columns do not have the same size. |
std::overflow_error | if the output column would exceed the column size limit. |
starts | First values in the result sequences. |
steps | Increment values for the result sequences. |
sizes | Numbers of values in the result sequences. |
stream | CUDA stream used for device memory operations and kernel launches. |
mr | Device memory resource used to allocate the returned column's device memory. |