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,
41  NULL_EQUAL,
43  NOT_EQUAL,
45  LESS,
46  GREATER,
47  LESS_EQUAL,
49  BITWISE_AND,
50  BITWISE_OR,
51  BITWISE_XOR,
52  LOGICAL_AND,
56  LOGICAL_OR,
60  // Unary operators
61  IDENTITY,
62  IS_NULL,
63  SIN,
64  COS,
65  TAN,
66  ARCSIN,
67  ARCCOS,
68  ARCTAN,
69  SINH,
70  COSH,
71  TANH,
72  ARCSINH,
73  ARCCOSH,
74  ARCTANH,
75  EXP,
76  LOG,
77  SQRT,
78  CBRT,
79  CEIL,
80  FLOOR,
81  ABS,
82  RINT,
83  BIT_INVERT,
84  NOT,
88 };
89  // end of group
91 } // namespace ast
92 
93 } // 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
@ 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:27