Modules | |
| Transpose | |
Enumerations | |
| enum class | cudf::flip_endianness : bool { NO , YES } |
| Configures whether byte casting flips endianness. | |
Functions | |
| std::unique_ptr< table > | cudf::explode (table_view const &input_table, size_type explode_column_idx, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Explodes a list column's elements. More... | |
| std::unique_ptr< table > | cudf::explode_position (table_view const &input_table, size_type explode_column_idx, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Explodes a list column's elements and includes a position column. More... | |
| std::unique_ptr< table > | cudf::explode_outer (table_view const &input_table, size_type explode_column_idx, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Explodes a list column's elements retaining any null entries or empty lists inside. More... | |
| std::unique_ptr< table > | cudf::explode_outer_position (table_view const &input_table, size_type explode_column_idx, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Explodes a list column's elements retaining any null entries or empty lists and includes a position column. More... | |
| std::unique_ptr< column > | cudf::interleave_columns (table_view const &input, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Interleave columns of a table into a single column. More... | |
| std::unique_ptr< table > | cudf::tile (table_view const &input, size_type count, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
Repeats the rows from input table count times to form a new table. More... | |
| std::unique_ptr< column > | cudf::byte_cast (column_view const &input_column, flip_endianness endian_configuration, cuda::stream_ref stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) |
| Converts a column's elements to lists of bytes. More... | |
| void | cudf::table_to_array (table_view const &input, device_span< cuda::std::byte > output, cuda::stream_ref stream=cudf::get_default_stream()) |
| Copies a table into a contiguous column-major device array. More... | |
| std::unique_ptr<column> cudf::byte_cast | ( | column_view const & | input_column, |
| flip_endianness | endian_configuration, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/reshape.hpp>
Converts a column's elements to lists of bytes.
| input_column | Column to be converted to lists of bytes |
| endian_configuration | Whether to retain or flip the endianness of the elements |
| 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<table> cudf::explode | ( | table_view const & | input_table, |
| size_type | explode_column_idx, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/lists/explode.hpp>
Explodes a list column's elements.
Any list is exploded, which means the elements of the list in each row are expanded into new rows in the output. The corresponding rows for other columns in the input are duplicated. Example:
Nulls and empty lists propagate in different ways depending on what is null or empty.
Note that null lists are not included in the resulting table, but nulls inside lists and empty lists will be represented with a null entry for that column in that row.
| input_table | Table to explode. |
| explode_column_idx | Column index to explode inside the table. |
| 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<table> cudf::explode_outer | ( | table_view const & | input_table, |
| size_type | explode_column_idx, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/lists/explode.hpp>
Explodes a list column's elements retaining any null entries or empty lists inside.
Any list is exploded, which means the elements of the list in each row are expanded into new rows in the output. The corresponding rows for other columns in the input are duplicated. Example:
Nulls and empty lists propagate as null entries in the result.
| input_table | Table to explode. |
| explode_column_idx | Column index to explode inside the table. |
| 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<table> cudf::explode_outer_position | ( | table_view const & | input_table, |
| size_type | explode_column_idx, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/lists/explode.hpp>
Explodes a list column's elements retaining any null entries or empty lists and includes a position column.
Any list is exploded, which means the elements of the list in each row are expanded into new rows in the output. The corresponding rows for other columns in the input are duplicated. A position column is added that has the index inside the original list for each row. Example:
Nulls and empty lists propagate as null entries in the result.
| input_table | Table to explode. |
| explode_column_idx | Column index to explode inside the table. |
| 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<table> cudf::explode_position | ( | table_view const & | input_table, |
| size_type | explode_column_idx, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/lists/explode.hpp>
Explodes a list column's elements and includes a position column.
Any list is exploded, which means the elements of the list in each row are expanded into new rows in the output. The corresponding rows for other columns in the input are duplicated. A position column is added that has the index inside the original list for each row. Example:
Nulls and empty lists propagate in different ways depending on what is null or empty.
Note that null lists are not included in the resulting table, but nulls inside lists and empty lists will be represented with a null entry for that column in that row.
| input_table | Table to explode. |
| explode_column_idx | Column index to explode inside the table. |
| 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::interleave_columns | ( | table_view const & | input, |
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/reshape.hpp>
Interleave columns of a table into a single column.
Converts the column major table input into a row major column. Example:
| cudf::logic_error | if input contains no columns. |
| cudf::logic_error | if input columns dtypes are not identical. |
| input | Table containing columns to interleave |
| stream | CUDA stream used for device memory operations and kernel launches |
| mr | Device memory resource used to allocate the returned column's device memory |
| void cudf::table_to_array | ( | table_view const & | input, |
| device_span< cuda::std::byte > | output, | ||
| cuda::stream_ref | stream = cudf::get_default_stream() |
||
| ) |
#include <cudf/reshape.hpp>
Copies a table into a contiguous column-major device array.
This function copies a table_view with columns of the same fixed-width type into a 2D device array stored in column-major order.
The output buffer must be preallocated and passed as a device_span using a device_span<cuda::std::byte>. It must be large enough to hold num_rows * num_columns * sizeof(dtype) bytes.
| cudf::logic_error | if columns do not all have the same type |
| cudf::logic_error | if the dtype of the columns is not a fixed-width type |
| std::invalid_argument | if the output span is too small |
| input | A table with fixed-width, non-nullable columns of the same type |
| output | A span representing preallocated device memory for the output |
| stream | CUDA stream used for memory operations |
| std::unique_ptr<table> cudf::tile | ( | table_view const & | input, |
| size_type | count, | ||
| cuda::stream_ref | stream = cudf::get_default_stream(), |
||
| rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
| ) |
#include <cudf/reshape.hpp>
Repeats the rows from input table count times to form a new table.
output.num_columns() == input.num_columns() output.num_rows() == input.num_rows() * count
| input | Table containing rows to be repeated |
| count | Number of times to tile "rows". Must be non-negative |
| stream | CUDA stream used for device memory operations and kernel launches |
| mr | Device memory resource used to allocate the returned table's device memory |