diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-06-09 09:18:19 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-06-09 22:22:50 +0200 |
commit | 8317de76486d8d7652c2fdeaa444e01bd6f17151 (patch) | |
tree | 4f2f71936d02ec26b294e8226681ad3e5314fbe8 /lib | |
parent | 3c62d4146899cd27f8926563fb071ea7db981899 (diff) | |
download | Nim-8317de76486d8d7652c2fdeaa444e01bd6f17151.tar.gz |
complex.nim: reformating [other]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/complex.nim | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/pure/complex.nim b/lib/pure/complex.nim index 69d9c0f7f..442bf62db 100644 --- a/lib/pure/complex.nim +++ b/lib/pure/complex.nim @@ -7,10 +7,6 @@ # distribution, for details about the copyright. # - - - - ## This module implements complex numbers. ## Complex numbers are currently implemented as generic on a 64-bit or 32-bit float. @@ -42,8 +38,8 @@ proc complex64*(re: float64; im: float64 = 0.0): Complex[float64] = template im*(arg: typedesc[float32]): Complex32 = complex[float32](0, 1) template im*(arg: typedesc[float64]): Complex64 = complex[float64](0, 1) -template im*(arg : float32): Complex32 = complex[float32](0, arg) -template im*(arg : float64): Complex64 = complex[float64](0, arg) +template im*(arg: float32): Complex32 = complex[float32](0, arg) +template im*(arg: float64): Complex64 = complex[float64](0, arg) proc abs*[T](z: Complex[T]): T = ## Return the distance from (0,0) to ``z``. |