Types
PyComplexObject = ref object of PyObject v*: PyComplex
- Source Edit
Lets
pyComplexObjectType {.inject.} = newBltinPyType("complex", pyObjectType)
- Source Edit
Procs
proc newPyComplex(re: PyFloatObject; im: PyFloatObject = newPyFloat 0): PyComplexObject {. ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyComplex(re: SomeFloat = 0; im: SomeFloat = 0): PyComplexObject
- Source Edit
proc newPyComplex(x: openArray[char]): PyComplexObject {....raises: [ValueError], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyComplex(x: PyComplex): PyComplexObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyComplex(x: PyComplexObject): PyComplexObject {....raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc newPyComplexSimple(): PyComplexObject {.cdecl, ...raises: [], tags: [RootEffect], forbids: [].}
- Source Edit
proc ofExactPyComplexObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc ofPyComplexObject(obj`gensym0: PyObject): bool {.cdecl, inline, ...raises: [], tags: [], forbids: [].}
- Source Edit
func toNimComplex(self: PyComplexObject): Complex[float] {....raises: [], tags: [], forbids: [].}
- Source Edit
Methods
method `$`(self: PyComplexObject): string {....raises: [], tags: [], forbids: [].}
- Source Edit
Templates
template imag(self: PyComplexObject): float
- Source Edit
template real(self: PyComplexObject): float
- Source Edit