21 #include <cudf/utilities/export.hpp>
26 namespace CUDF_EXPORT
cudf {
95 template <
typename L,
typename R,
typename =
void>
99 template <
typename L,
typename R>
102 using type = std::common_type_t<L, R>;
106 template <
typename L,
typename R>
110 std::enable_if_t<is_fixed_point<L>() && cuda::std::is_floating_point_v<R>>> {
116 template <
typename L,
typename R>
120 std::enable_if_t<is_fixed_point<R>() && cuda::std::is_floating_point_v<L>>> {
126 template <
typename L,
typename R>
130 template <
typename AlwaysVo
id,
typename L,
typename R>
131 struct binary_op_has_common_type_impl : std::false_type {};
133 template <
typename L,
typename R>
134 struct binary_op_has_common_type_impl<std::
void_t<binary_op_common_type_t<L, R>>, L, R>
139 template <
typename L,
typename R>
141 detail::binary_op_has_common_type_impl<void, L, R>::value;
261 std::string
const& ptx,
276 int32_t right_scale);
323 namespace CUDF_EXPORT
cudf {
324 namespace binops::compiled::detail {
bool is_supported_operation(data_type out, data_type lhs, data_type rhs, binary_operator op)
Returns true if the binary operator is supported for the given input types.
std::pair< rmm::device_buffer, size_type > scalar_col_valid_mask_and(column_view const &col, scalar const &s, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref())
Computes output valid mask for op between a column and a scalar.
void apply_sorting_struct_binary_op(mutable_column_view &out, column_view const &lhs, column_view const &rhs, bool is_lhs_scalar, bool is_rhs_scalar, binary_operator op, rmm::cuda_stream_view stream)
struct binary operation using NaN aware sorting physical element comparators
A non-owning, immutable view of device data as a column of elements, some of which may be null as ind...
Indicator for the logical data type of an element in a column.
A non-owning, mutable view of device data as a column of elements, some of which may be null as indic...
An owning class to represent a singular value.
Class definition for cudf::column.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
rmm::device_async_resource_ref get_current_device_resource_ref()
Get the current device memory resource reference.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
void void_t
Utility metafunction that maps a sequence of any types to the type void.
Class definitions for cudf::scalar.
std::common_type_t< L, R > type
The common type of the template parameters.
R type
The common type of the template parameters.
L type
The common type of the template parameters.
Binary operation common type default.