Skip to main content

internal.types.complex

Standard library Module View source
class complex
@tuple
class complex
Fields 2
real float
imag float
Constructors 3
__new__
__new__() -> complex
__new__
@overload
__new__(what)
__new__
@overload
__new__(real, imag) -> complex
Methods 2
cdiv
cdiv(self: Self, other: complex) -> complex
conjugate
conjugate(self: Self, /) -> complex
Special methods 20
__complex__
__complex__(self: Self, /) -> complex
__bool__
__bool__(self: Self, /) -> bool
__pos__
__pos__(self: Self, /) -> complex
__neg__
__neg__(self: Self, /) -> complex
__abs__
__abs__(self: Self, /) -> float
__copy__
__copy__(self: Self) -> complex
__hash__
__hash__(self: Self, /) -> int
__add__
__add__(self: Self, other: float, /) -> complex
__add__(self: Self, other: int, /) -> complex
__add__(self: Self, other: complex, /) -> complex
__sub__
__sub__(self: Self, other: float, /) -> complex
__sub__(self: Self, other: int, /) -> complex
__sub__(self: Self, other: complex, /) -> complex
__mul__
__mul__(self: Self, other: float, /) -> complex
__mul__(self: Self, other: int, /) -> complex
__mul__(self: Self, other: complex, /) -> complex
__truediv__
__truediv__(self: Self, other: float, /) -> complex
__truediv__(self: Self, other: int, /) -> complex
__truediv__(self: Self, other: complex, /) -> complex
__eq__
__eq__(self: Self, other: float, /) -> bool
__eq__(self: Self, other: int, /) -> bool
__eq__(self: Self, other: complex, /) -> bool
__ne__
__ne__(self: Self, other: float, /) -> bool
__ne__(self: Self, other: int, /) -> bool
__ne__(self: Self, other: complex, /) -> bool
__pow__
__pow__(self: Self, other: float, /) -> complex
__pow__(self: Self, other: int, /) -> complex
__pow__(self: Self, other: complex, /) -> complex
__radd__
__radd__(self: Self, other: float, /) -> complex
__radd__(self: Self, other: int, /) -> complex
__rsub__
__rsub__(self: Self, other: float, /) -> complex
__rsub__(self: Self, other: int, /) -> complex
__rmul__
__rmul__(self: Self, other: float, /) -> complex
__rmul__(self: Self, other: int, /) -> complex
__rtruediv__
__rtruediv__(self: Self, other: float, /) -> complex
__rtruediv__(self: Self, other: int, /) -> complex
__rpow__
__rpow__(self: Self, other: float, /) -> complex
__rpow__(self: Self, other: int, /) -> complex
__repr__
__repr__(self: Self, /) -> str
alias f32
f32 = float32
Alias of float32
class complex64
@extend
class complex64
Constructors 5
__new__
__new__() -> complex64
__new__
__new__(other)
__new__
__new__(real: f32)
__new__
__new__(other: complex) -> complex64
__new__
__new__(real, imag) -> complex64
Methods 2
cdiv
cdiv(self: Self, other: complex64) -> complex64
conjugate
conjugate(self: Self) -> complex64
Special methods 21
__complex__
__complex__(self: Self) -> complex
__bool__
__bool__(self: Self) -> bool
__pos__
__pos__(self: Self) -> complex64
__neg__
__neg__(self: Self) -> complex64
__abs__
__abs__(self: Self) -> f32
__copy__
__copy__(self: Self) -> complex64
__hash__
__hash__(self: Self) -> int
__add__
__add__(self: Self, other: complex) -> complex
__add__(self: Self, other: float32) -> complex64
__add__(self: Self, other: float) -> complex
__add__(self: Self, other: int) -> complex
__add__(self: Self, other: complex64) -> complex64
__sub__
__sub__(self: Self, other: complex) -> complex
__sub__(self: Self, other: float32) -> complex64
__sub__(self: Self, other: float) -> complex
__sub__(self: Self, other: int) -> complex
__sub__(self: Self, other: complex64) -> complex64
__mul__
__mul__(self: Self, other: complex) -> complex
__mul__(self: Self, other: float32) -> complex64
__mul__(self: Self, other: float) -> complex
__mul__(self: Self, other: int) -> complex
__mul__(self: Self, other: complex64) -> complex64
__truediv__
__truediv__(self: Self, other: complex) -> complex
__truediv__(self: Self, other: float32) -> complex64
__truediv__(self: Self, other: float) -> complex
__truediv__(self: Self, other: int) -> complex
__truediv__(self: Self, other: complex64) -> complex64
__pow__
__pow__(self: Self, other: complex) -> complex
__pow__(self: Self, other: float32) -> complex64
__pow__(self: Self, other: float) -> complex
__pow__(self: Self, other: int) -> complex64
__pow__(self: Self, other: complex64) -> complex64
__eq__
__eq__(self: Self, other: complex) -> bool
__eq__(self: Self, other: float32) -> bool
__eq__(self: Self, other: float) -> bool
__eq__(self: Self, other: int) -> bool
__eq__(self: Self, other: complex64) -> bool
__ne__
__ne__(self: Self, other: complex) -> bool
__ne__(self: Self, other: float32) -> bool
__ne__(self: Self, other: float) -> bool
__ne__(self: Self, other: int) -> bool
__ne__(self: Self, other: complex64) -> bool
__radd__
__radd__(self: Self, other: complex) -> complex
__radd__(self: Self, other: float32) -> complex64
__radd__(self: Self, other: float) -> complex
__radd__(self: Self, other: int) -> complex
__rsub__
__rsub__(self: Self, other: complex) -> complex
__rsub__(self: Self, other: float32) -> complex64
__rsub__(self: Self, other: float) -> complex
__rsub__(self: Self, other: int) -> complex
__rmul__
__rmul__(self: Self, other: complex) -> complex
__rmul__(self: Self, other: float32) -> complex64
__rmul__(self: Self, other: float) -> complex
__rmul__(self: Self, other: int) -> complex
__rtruediv__
__rtruediv__(self: Self, other: complex) -> complex
__rtruediv__(self: Self, other: float32) -> complex64
__rtruediv__(self: Self, other: float) -> complex
__rtruediv__(self: Self, other: int) -> complex
__rpow__
__rpow__(self: Self, other: complex) -> complex
__rpow__(self: Self, other: float32) -> complex64
__rpow__(self: Self, other: float) -> complex
__rpow__(self: Self, other: int) -> complex
__repr__
__repr__(self: Self) -> str
__str__
__str__(self: Self) -> str