ast_operator.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 #pragma once
6 
7 #include <cudf/utilities/export.hpp>
8 
9 #include <cuda/std/cstdint>
10 
16 namespace CUDF_EXPORT cudf {
17 
18 namespace ast {
27 enum class ast_operator : int32_t {
28  // Binary operators
29  ADD,
30  SUB,
31  MUL,
32  DIV,
33  TRUE_DIV,
34  FLOOR_DIV,
36  MOD,
37  PYMOD,
38  POW,
39  EQUAL,
40  NULL_EQUAL,
43  NOT_EQUAL,
44  LESS,
45  GREATER,
46  LESS_EQUAL,
48  BITWISE_AND,
49  BITWISE_OR,
50  BITWISE_XOR,
51  LOGICAL_AND,
56  LOGICAL_OR,
61  // Unary operators
62  IDENTITY,
63  IS_NULL,
64  SIN,
65  COS,
66  TAN,
67  ARCSIN,
68  ARCCOS,
69  ARCTAN,
70  SINH,
71  COSH,
72  TANH,
73  ARCSINH,
74  ARCCOSH,
75  ARCTANH,
76  EXP,
77  LOG,
78  SQRT,
79  CBRT,
80  CEIL,
81  FLOOR,
82  ABS,
83  RINT,
84  BIT_INVERT,
85  NOT,
89 };
90  // end of group
92 } // namespace ast
93 
94 } // namespace CUDF_EXPORT cudf
ast_operator
Enum of supported operators.
@ NOT
Logical Not (!)
@ TANH
Hyperbolic tangent.
@ DIV
operator / using common type of lhs and rhs
@ CBRT
Cube-root (x^(1.0/3))
@ ARCSINH
Hyperbolic sine inverse.
@ SQRT
Square-root (x^0.5)
@ PYMOD
operator % using Python's sign rules for negatives
@ LOG
Natural Logarithm (base e)
@ FLOOR
largest integer value not greater than arg
@ ARCTAN
Trigonometric tangent inverse.
@ SIN
Trigonometric sine.
@ CEIL
Smallest integer value not less than arg.
@ ARCSIN
Trigonometric sine inverse.
@ RINT
Rounds the floating-point argument arg to an integer value.
@ BIT_INVERT
Bitwise Not (~)
@ TAN
Trigonometric tangent.
@ ARCCOS
Trigonometric cosine inverse.
@ ABS
Absolute value.
@ ARCTANH
Hyperbolic tangent inverse.
@ GREATER_EQUAL
operator >=
@ EXP
Exponential (base e, Euler number)
@ CAST_TO_FLOAT64
Cast value to double.
@ TRUE_DIV
operator / after promoting type to floating point
@ LOGICAL_AND
operator &&
@ SINH
Hyperbolic sine.
@ CAST_TO_UINT64
Cast value to uint64_t.
@ COSH
Hyperbolic cosine.
@ ARCCOSH
Hyperbolic cosine inverse.
@ IDENTITY
Identity function.
@ IS_NULL
Check if operand is null.
@ CAST_TO_INT64
Cast value to int64_t.
@ COS
Trigonometric cosine.
cuDF interfaces
Definition: host_udf.hpp:26