Mojo module
complex
Ops that work with complex types.
We don't have a formal complex type yet, so we represent complex numbers as having a final dimension of size 2, representing the real and complex parts respectively.
Functionsβ
- β
as_complex
: Creates a complex-valued tensor from two real-valued tensors. - β
as_interleaved_complex
: Reshapes the input symbolic tensor as complex from alternating (real, imag). - β
as_real
: Splits out the real and imaginary components of a symbolic tensor. - β
mul_complex
: Multiplies two complex-valued symbolic tensors elementwise.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
π What went wrong?