cudf-cxx 0.2.0

cxx-based FFI bridge between Rust and NVIDIA libcudf C++ API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "round_shim.h"
#include <cudf/round.hpp>
#include <cudf/utilities/default_stream.hpp>

namespace cudf_shims {

std::unique_ptr<OwnedColumn> round_column(const OwnedColumn& col, int32_t decimal_places) {
    auto result = cudf::round(
        col.view(),
        decimal_places,
        cudf::rounding_method::HALF_UP);
    return std::make_unique<OwnedColumn>(std::move(result));
}

} // namespace cudf_shims