How does tigergraph implement complex operations

Because I want to calculate directly on the graph, and I need to use the complex number

But I didn’t find the description of complex or imaginary numbers in the data type of tigergraph。

So how do I implement complex operations

Is there any method like Python:
image

Hey there! Complex numbers are not natively supported as a primitive datatype. As such, operations like getting the complex conjugate do not exist as built-in operations. My suggestion would be to use UDFs and tuples to implement the operations you need, which should be easy to find online if you don’t want to slog through the C++ yourself! (You could also implement the operations in GSQL)

1 Like

Thank you for your inspiration, which solved a big problem for me