libcudf  24.02.00
Files | Functions

Files

file  transpose.hpp
 

Functions

std::pair< std::unique_ptr< column >, table_viewcudf::transpose (table_view const &input, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
 Transposes a table. More...
 

Detailed Description

Function Documentation

◆ transpose()

std::pair<std::unique_ptr<column>, table_view> cudf::transpose ( table_view const &  input,
rmm::mr::device_memory_resource mr = rmm::mr::get_current_device_resource() 
)

Transposes a table.

Stores output in a contiguous column, exposing the transposed table as a table_view.

Exceptions
cudf::logic_errorif column types are non-homogeneous
cudf::logic_errorif column types are non-fixed-width
Parameters
[in]inputA table (M cols x N rows) to be transposed
[in]mrDevice memory resource used to allocate the device memory of returned value
Returns
The transposed input (N cols x M rows) as a column and table_view, representing the owner and transposed table, respectively.