命名空间 | 枚举 | 函数
unary.hpp 文件参考

用于一元操作的列 API。 更多...

#include <cudf/fixed_point/detail/floating_conversion.hpp>
#include <cudf/fixed_point/fixed_point.hpp>
#include <cudf/types.hpp>
#include <cudf/utilities/default_stream.hpp>
#include <cudf/utilities/export.hpp>
#include <cudf/utilities/memory_resource.hpp>
#include <cudf/utilities/traits.hpp>
#include <memory>

查看此文件源代码。

命名空间

 cudf
 cuDF 接口
 

枚举

enum class  cudf::unary_operator : int32_t {
  cudf::SIN , cudf::COS , cudf::TAN , cudf::ARCSIN ,
  cudf::ARCCOS , cudf::ARCTAN , cudf::SINH , cudf::COSH ,
  cudf::TANH , cudf::ARCSINH , cudf::ARCCOSH , cudf::ARCTANH ,
  cudf::EXP , cudf::LOG , cudf::SQRT , cudf::CBRT ,
  cudf::CEIL , cudf::FLOOR , cudf::ABS , cudf::RINT ,
  cudf::BIT_INVERT , cudf::NOT , cudf::NEGATE
}
 可对数据执行的一元操作类型。 更多...
 

函数

template<typename Fixed , typename Floating , CUDF_ENABLE_IF(cuda::std::is_floating_point_v< Floating > &&is_fixed_point< Fixed >()) >
CUDF_HOST_DEVICE Fixed cudf::convert_floating_to_fixed (Floating floating, numeric::scale_type scale)
 将浮点值转换为定点值。 更多...
 
template<typename Floating , typename Fixed , CUDF_ENABLE_IF(cuda::std::is_floating_point_v< Floating > &&is_fixed_point< Fixed >()) >
CUDF_HOST_DEVICE Floating cudf::convert_fixed_to_floating (Fixed fixed)
 将定点值转换为浮点值。 更多...
 
template<typename Floating , typename Input , CUDF_ENABLE_IF(cuda::std::is_floating_point_v< Floating >) >
CUDF_HOST_DEVICE Floating cudf::convert_to_floating (Input input)
 将值转换为浮点。 更多...
 
std::unique_ptr< cudf::columncudf::unary_operation (cudf::column_view const &input, cudf::unary_operator op, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 对列中的所有值执行一元操作。 更多...
 
std::unique_ptr< cudf::columncudf::is_null (cudf::column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 创建一个包含 type_id::BOOL8 元素的列,其中 input 中每个元素对应的输出为 true 表示该值为 null,为 false 表示该值有效。 更多...
 
std::unique_ptr< cudf::columncudf::is_valid (cudf::column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 创建一个包含 type_id::BOOL8 元素的列,其中 input 中每个元素对应的输出为 true 表示该值有效,为 false 表示该值为 null。 更多...
 
std::unique_ptr< column > cudf::cast (column_view const &input, data_type out_type, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 将数据从 input 中指定的 dtype 转换为 output 中指定的 dtype。 更多...
 
bool cudf::is_supported_cast (data_type from, data_type to) noexcept
 检查两个数据类型之间的转换是否受支持。 更多...
 
std::unique_ptr< column > cudf::is_nan (cudf::column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 创建一个包含 type_id::BOOL8 元素的列,指示浮点值列中是否存在 NaN 值。 如果 input 中行 i 的元素是 NAN,则输出中行 i 的元素为 true,否则为 false更多...
 
std::unique_ptr< column > cudf::is_not_nan (cudf::column_view const &input, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
 创建一个包含 type_id::BOOL8 元素的列,指示浮点值列中是否存在非 NaN 值。 如果 input 中行 i 的元素是 NAN,则输出中行 i 的元素为 false,否则为 true更多...
 

详细描述

用于一元操作的列 API。

定义于文件 unary.hpp 中。