21 #include <cudf/utilities/export.hpp>
28 namespace CUDF_EXPORT
cudf {
97 template <
typename L,
typename R,
typename =
void>
101 template <
typename L,
typename R>
104 using type = std::common_type_t<L, R>;
108 template <
typename L,
typename R>
112 std::enable_if_t<is_fixed_point<L>() && cuda::std::is_floating_point_v<R>>> {
118 template <
typename L,
typename R>
122 std::enable_if_t<is_fixed_point<R>() && cuda::std::is_floating_point_v<L>>> {
128 template <
typename L,
typename R>
132 template <
typename AlwaysVo
id,
typename L,
typename R>
133 struct binary_op_has_common_type_impl : std::false_type {};
135 template <
typename L,
typename R>
136 struct binary_op_has_common_type_impl<std::
void_t<binary_op_common_type_t<L, R>>, L, R>
141 template <
typename L,
typename R>
143 detail::binary_op_has_common_type_impl<void, L, R>::value;
263 std::string
const& ptx,
278 int32_t right_scale);
325 namespace CUDF_EXPORT
cudf {
326 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=rmm::mr::get_current_device_resource())
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.
cuda::mr::async_resource_ref< cuda::mr::device_accessible > device_async_resource_ref
device_memory_resource * get_current_device_resource()
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.