Files | |
file | copying.hpp |
Column APIs for gather, scatter, split, slice, etc. | |
Functions | |
std::vector< column_view > | cudf::slice (column_view const &input, std::vector< size_type > const &indices) |
Slices a column_view into a set of column_view s according to a set of indices. More... | |
std::vector< table_view > | cudf::slice (table_view const &input, std::vector< size_type > const &indices) |
Slices a table_view into a set of table_view s according to a set of indices. More... | |
std::vector<column_view> cudf::slice | ( | column_view const & | input, |
std::vector< size_type > const & | indices | ||
) |
Slices a column_view
into a set of column_view
s according to a set of indices.
The returned views of input
are constructed from an even number indices where the i
th returned column_view
views the elements in input
indicated by the range [indices[2*i], indices[(2*i)+1])
.
For all i
it is expected indices[i] <= input.size()
For all i%2==0
, it is expected that indices[i] <= indices[i+1]
cudf::logic_error | if indices size is not even. |
cudf::logic_error | When the values in the pair are strictly decreasing. |
cudf::logic_error | When any of the values in the pair don't belong to the range [0, input.size()). |
input | View of column to slice |
indices | A vector of indices used to take slices of input . |
input
indicated by the ranges in indices
. std::vector<table_view> cudf::slice | ( | table_view const & | input, |
std::vector< size_type > const & | indices | ||
) |
Slices a table_view
into a set of table_view
s according to a set of indices.
The returned views of input
are constructed from an even number indices where the i
th returned table_view
views the elements in input
indicated by the range [indices[2*i], indices[(2*i)+1])
.
For all i
it is expected indices[i] <= input.size()
For all i%2==0
, it is expected that indices[i] <= indices[i+1]
cudf::logic_error | if indices size is not even. |
cudf::logic_error | When the values in the pair are strictly decreasing. |
cudf::logic_error | When any of the values in the pair don't belong to the range [0, input.size()). |
input | View of table to slice |
indices | A vector of indices used to take slices of input . |
input
indicated by the ranges in indices
.