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__()
__new__
@overload
__new__(what)
__new__
@overload
__new__(real, imag)
Methods 2
cdiv
cdiv(self: Self, other: complex, Self: type)
conjugate
conjugate(self: Self, Self: type)
Special methods 20
__complex__
__complex__(self: Self, Self: type)
__bool__
__bool__(self: Self, Self: type)
__pos__
__pos__(self: Self, Self: type)
__neg__
__neg__(self: Self, Self: type)
__abs__
__abs__(self: Self, Self: type)
__copy__
__copy__(self: Self, Self: type)
__hash__
__hash__(self: Self, Self: type)
__add__
__add__(self: Self, other: float, Self: type)
__add__(self: Self, other: int, Self: type)
__add__(self: Self, other: complex, Self: type)
__sub__
__sub__(self: Self, other: float, Self: type)
__sub__(self: Self, other: int, Self: type)
__sub__(self: Self, other: complex, Self: type)
__mul__
__mul__(self: Self, other: float, Self: type)
__mul__(self: Self, other: int, Self: type)
__mul__(self: Self, other: complex, Self: type)
__truediv__
__truediv__(self: Self, other: float, Self: type)
__truediv__(self: Self, other: int, Self: type)
__truediv__(self: Self, other: complex, Self: type)
__eq__
__eq__(self: Self, other: float, Self: type)
__eq__(self: Self, other: int, Self: type)
__eq__(self: Self, other: complex, Self: type)
__ne__
__ne__(self: Self, other: float, Self: type)
__ne__(self: Self, other: int, Self: type)
__ne__(self: Self, other: complex, Self: type)
__pow__
__pow__(self: Self, other: float, Self: type)
__pow__(self: Self, other: int, Self: type)
__pow__(self: Self, other: complex, Self: type)
__radd__
__radd__(self: Self, other: float, Self: type)
__radd__(self: Self, other: int, Self: type)
__rsub__
__rsub__(self: Self, other: float, Self: type)
__rsub__(self: Self, other: int, Self: type)
__rmul__
__rmul__(self: Self, other: float, Self: type)
__rmul__(self: Self, other: int, Self: type)
__rtruediv__
__rtruediv__(self: Self, other: float, Self: type)
__rtruediv__(self: Self, other: int, Self: type)
__rpow__
__rpow__(self: Self, other: float, Self: type)
__rpow__(self: Self, other: int, Self: type)
__repr__
__repr__(self: Self, Self: type)
class int
@extend
class int
Special methods 1
__suffix_j__
__suffix_j__(x: int)
class complex64
@extend
class complex64
Constructors 5
__new__
__new__()
__new__
__new__(other)
__new__
__new__(real: float32)
__new__
__new__(other: complex)
__new__
__new__(real, imag)
Methods 2
cdiv
cdiv(self: Self, other: complex64, Self: type)
conjugate
conjugate(self: Self, Self: type)
Special methods 21
__complex__
__complex__(self: Self, Self: type)
__bool__
__bool__(self: Self, Self: type)
__pos__
__pos__(self: Self, Self: type)
__neg__
__neg__(self: Self, Self: type)
__abs__
__abs__(self: Self, Self: type)
__copy__
__copy__(self: Self, Self: type)
__hash__
__hash__(self: Self, Self: type)
__add__
__add__(self: Self, other: complex, Self: type)
__add__(self: Self, other: float32, Self: type)
__add__(self: Self, other: float, Self: type)
__add__(self: Self, other: int, Self: type)
__add__(self: Self, other: complex64, Self: type)
__sub__
__sub__(self: Self, other: complex, Self: type)
__sub__(self: Self, other: float32, Self: type)
__sub__(self: Self, other: float, Self: type)
__sub__(self: Self, other: int, Self: type)
__sub__(self: Self, other: complex64, Self: type)
__mul__
__mul__(self: Self, other: complex, Self: type)
__mul__(self: Self, other: float32, Self: type)
__mul__(self: Self, other: float, Self: type)
__mul__(self: Self, other: int, Self: type)
__mul__(self: Self, other: complex64, Self: type)
__truediv__
__truediv__(self: Self, other: complex, Self: type)
__truediv__(self: Self, other: float32, Self: type)
__truediv__(self: Self, other: float, Self: type)
__truediv__(self: Self, other: int, Self: type)
__truediv__(self: Self, other: complex64, Self: type)
__pow__
__pow__(self: Self, other: complex, Self: type)
__pow__(self: Self, other: float32, Self: type)
__pow__(self: Self, other: float, Self: type)
__pow__(self: Self, other: int, Self: type)
__pow__(self: Self, other: complex64, Self: type)
__eq__
__eq__(self: Self, other: complex, Self: type)
__eq__(self: Self, other: float32, Self: type)
__eq__(self: Self, other: float, Self: type)
__eq__(self: Self, other: int, Self: type)
__eq__(self: Self, other: complex64, Self: type)
__ne__
__ne__(self: Self, other: complex, Self: type)
__ne__(self: Self, other: float32, Self: type)
__ne__(self: Self, other: float, Self: type)
__ne__(self: Self, other: int, Self: type)
__ne__(self: Self, other: complex64, Self: type)
__radd__
__radd__(self: Self, other: complex, Self: type)
__radd__(self: Self, other: float32, Self: type)
__radd__(self: Self, other: float, Self: type)
__radd__(self: Self, other: int, Self: type)
__rsub__
__rsub__(self: Self, other: complex, Self: type)
__rsub__(self: Self, other: float32, Self: type)
__rsub__(self: Self, other: float, Self: type)
__rsub__(self: Self, other: int, Self: type)
__rmul__
__rmul__(self: Self, other: complex, Self: type)
__rmul__(self: Self, other: float32, Self: type)
__rmul__(self: Self, other: float, Self: type)
__rmul__(self: Self, other: int, Self: type)
__rtruediv__
__rtruediv__(self: Self, other: complex, Self: type)
__rtruediv__(self: Self, other: float32, Self: type)
__rtruediv__(self: Self, other: float, Self: type)
__rtruediv__(self: Self, other: int, Self: type)
__rpow__
__rpow__(self: Self, other: complex, Self: type)
__rpow__(self: Self, other: float32, Self: type)
__rpow__(self: Self, other: float, Self: type)
__rpow__(self: Self, other: int, Self: type)
__repr__
__repr__(self: Self, Self: type)
__str__
__str__(self: Self, Self: type)