Stan Math Library
4.9.0
Automatic Differentiation
|
#define ADD_BINARY_OPERATION | ( | class_name, | |
function_name, | |||
scalar_type_expr, | |||
operation | |||
) |
Defines a new binary operation in kernel generator.
class_name | The name of the class this macro will define to represent this operation |
function_name | The name of the function this macro will define that will be used to create this operation. |
scalar_type_expr | The type of the scalar in the result of this operation. Can be a C++ expression that uses T_a and T_b as types of the scalars in the arguments to this operation. |
operation | String containing operator that is used to implement this operation in kernel. Should be a valid infix operator in OpenCL C. |
Definition at line 104 of file binary_operation.hpp.