Files  
file  binaryop.hpp 
Column APIs for binary ops.  
Functions  
std::unique_ptr< column >  cudf::binary_operation (scalar const &lhs, column_view const &rhs, binary_operator op, data_type output_type, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) 
Performs a binary operation between a scalar and a column. More...  
std::unique_ptr< column >  cudf::binary_operation (column_view const &lhs, scalar const &rhs, binary_operator op, data_type output_type, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) 
Performs a binary operation between a column and a scalar. More...  
std::unique_ptr< column >  cudf::binary_operation (column_view const &lhs, column_view const &rhs, binary_operator op, data_type output_type, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) 
Performs a binary operation between two columns. More...  
std::unique_ptr< column >  cudf::binary_operation (column_view const &lhs, column_view const &rhs, std::string const &ptx, data_type output_type, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) 
Performs a binary operation between two columns using a userdefined PTX function. More...  

strong 
Types of binary operations that can be performed on data.
Definition at line 36 of file binaryop.hpp.
std::unique_ptr<column> cudf::binary_operation  (  column_view const &  lhs, 
column_view const &  rhs,  
binary_operator  op,  
data_type  output_type,  
rmm::mr::device_memory_resource *  mr = rmm::mr::get_current_device_resource() 

) 
Performs a binary operation between two columns.
The output contains the result of op(lhs[i], rhs[i])
for all 0 <= i < lhs.size()
Regardless of the operator, the validity of the output value is the logical AND of the validity of the two operands
lhs  The left operand column 
rhs  The right operand column 
output_type  The desired data type of the output column 
mr  Device memory resource used to allocate the returned column's device memory 
output_type
type containing the result of the binary operation cudf::logic_error  if lhs and rhs are different sizes 
cudf::logic_error  if output_type dtype isn't fixedwidth 
std::unique_ptr<column> cudf::binary_operation  (  column_view const &  lhs, 
column_view const &  rhs,  
std::string const &  ptx,  
data_type  output_type,  
rmm::mr::device_memory_resource *  mr = rmm::mr::get_current_device_resource() 

) 
Performs a binary operation between two columns using a userdefined PTX function.
The output contains the result of op(lhs[i], rhs[i])
for all 0 <= i < lhs.size()
Regardless of the operator, the validity of the output value is the logical AND of the validity of the two operands
lhs  The left operand column 
rhs  The right operand column 
ptx  String containing the PTX of a binary function 
output_type  The desired data type of the output column. It is assumed that output_type is compatible with the output data type of the function in the PTX code 
mr  Device memory resource used to allocate the returned column's device memory 
output_type
type containing the result of the binary operation cudf::logic_error  if lhs and rhs are different sizes 
cudf::logic_error  if lhs and rhs dtypes aren't numeric 
cudf::logic_error  if output_type dtype isn't numeric 
std::unique_ptr<column> cudf::binary_operation  (  column_view const &  lhs, 
scalar const &  rhs,  
binary_operator  op,  
data_type  output_type,  
rmm::mr::device_memory_resource *  mr = rmm::mr::get_current_device_resource() 

) 
Performs a binary operation between a column and a scalar.
The output contains the result of op(lhs[i], rhs)
for all 0 <= i < lhs.size()
The column elements are the left operand and the scalar is the right operand. This distinction is significant in case of noncommutative binary operations
Regardless of the operator, the validity of the output value is the logical AND of the validity of the two operands
lhs  The left operand column 
rhs  The right operand scalar 
output_type  The desired data type of the output column 
mr  Device memory resource used to allocate the returned column's device memory 
output_type
type containing the result of the binary operation cudf::logic_error  if output_type dtype isn't fixedwidth 
std::unique_ptr<column> cudf::binary_operation  (  scalar const &  lhs, 
column_view const &  rhs,  
binary_operator  op,  
data_type  output_type,  
rmm::mr::device_memory_resource *  mr = rmm::mr::get_current_device_resource() 

) 
Performs a binary operation between a scalar and a column.
The output contains the result of op(lhs, rhs[i])
for all 0 <= i < rhs.size()
The scalar is the left operand and the column elements are the right operand. This distinction is significant in case of noncommutative binary operations
Regardless of the operator, the validity of the output value is the logical AND of the validity of the two operands
lhs  The left operand scalar 
rhs  The right operand column 
output_type  The desired data type of the output column 
mr  Device memory resource used to allocate the returned column's device memory 
output_type
type containing the result of the binary operation cudf::logic_error  if output_type dtype isn't fixedwidth 