Complex¶
-
class
taichi_glsl.classes.
Complex
(x, y=None)¶ Bases:
taichi_glsl.odop.TaichiClass
,taichi.lang.common_ops.TaichiOperations
Complex number support in Taichi GLSL
- Note
complex * complex is the element-wise multiplication. Use complex @ complex if you mean to use complex number multiplication.
Attributes Summary
Phase angle of the complex
Imaginary part of the complex
Magnitude of the complex
Squared magnitude of the complex
Real part of the complex
Real part of the complex
Imaginary part of the complex
Methods Summary
element_wise_binary
(foo, b)element_wise_unary
(foo)element_wise_writeback_binary
(foo, b)Attributes Documentation
-
ang
¶ Phase angle of the complex
-
im
¶ Imaginary part of the complex
-
mag
¶ Magnitude of the complex
-
mag2
¶ Squared magnitude of the complex
-
re
¶ Real part of the complex
-
x
¶ Real part of the complex
-
y
¶ Imaginary part of the complex
Methods Documentation
-
element_wise_binary
(foo, b)¶
-
element_wise_unary
(foo)¶
-
element_wise_writeback_binary
(foo, b)¶