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
//! Bridge definitions for libcudf rounding operations.
//!
//! Provides GPU-accelerated rounding of numeric columns.

#[cxx::bridge(namespace = "cudf_shims")]
pub mod ffi {
    unsafe extern "C++" {
        include!("round_shim.h");
        include!("column_shim.h");
        type OwnedColumn = crate::column::ffi::OwnedColumn;

        /// Round a numeric column to the specified number of decimal places.
        fn round_column(col: &OwnedColumn, decimal_places: i32) -> Result<UniquePtr<OwnedColumn>>;
    }
}