Get the absolute value (magnitude).
Get the argument (phase angle in radians).
Get the element type (Float16, Float32, or Float64).
Get the imaginary part.
Get the real part.
Get as JavaScript object.
String representation.
StaticfromCreate a ComplexF64 from real and imaginary parts.
Real part
Imaginary part (default: 0)
StaticfromCreate a ComplexF16 from real and imaginary parts.
Real part
Imaginary part (default: 0)
StaticfromCreate a ComplexF32 from real and imaginary parts.
Real part
Imaginary part (default: 0)
StaticfromCreate a complex number from polar form.
Magnitude
Phase angle in radians
Element type (default: Float64)
StaticwrapInternalWrap an existing Julia Complex pointer.
Wrapper for Julia Complex{T} types.
Supports ComplexF64, ComplexF32, and ComplexF16.
Example