ast_operator.hpp
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2025, NVIDIA CORPORATION.
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 
11 namespace CUDF_EXPORT cudf {
12 
13 namespace ast {
23 enum class ast_operator : int32_t {
24  // Binary operators
25  ADD,
26  SUB,
27  MUL,
28  DIV,
29  TRUE_DIV,
30  FLOOR_DIV,
32  MOD,
33  PYMOD,
34  POW,
35  EQUAL,
36  NULL_EQUAL,
39  NOT_EQUAL,
40  LESS,
41  GREATER,
42  LESS_EQUAL,
44  BITWISE_AND,
45  BITWISE_OR,
46  BITWISE_XOR,
47  LOGICAL_AND,
52  LOGICAL_OR,
57  // Unary operators
58  IDENTITY,
59  IS_NULL,
60  SIN,
61  COS,
62  TAN,
63  ARCSIN,
64  ARCCOS,
65  ARCTAN,
66  SINH,
67  COSH,
68  TANH,
69  ARCSINH,
70  ARCCOSH,
71  ARCTANH,
72  EXP,
73  LOG,
74  SQRT,
75  CBRT,
76  CEIL,
77  FLOOR,
78  ABS,
79  RINT,
80  BIT_INVERT,
81  NOT,
85 };
86  // end of group
88 } // namespace ast
89 
90 } // 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