File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,19 @@ function rand(rng::AbstractRNG, ::Random.SamplerTrivial{Random.CloseOpen01{Compl
21
21
return Complex {DoubleFloat{T}} (re, im)
22
22
end
23
23
24
- function randpm (:: Type{DoubleFloat{T}} ) where {T<: IEEEFloat }
25
- r = rand (DoubleFloat{T})
26
- r = rand (Bool) ? r : - r
27
- return r
28
- end
29
24
30
25
function randpm (rng:: MersenneTwister , :: Type{DoubleFloat{T}} ) where {T<: IEEEFloat }
31
26
r = rand (rng, DoubleFloat{T})
32
27
r = rand (rng, Bool) ? r : - r
33
28
return r
34
29
end
35
30
31
+ function randpm (:: Type{DoubleFloat{T}} ) where {T<: IEEEFloat }
32
+ r = rand (DoubleFloat{T})
33
+ r = rand (Bool) ? r : - r
34
+ return r
35
+ end
36
+
36
37
function randpm (:: Type{Complex{DoubleFloat{T}}} ) where {T<: IEEEFloat }
37
38
re = randpm (DoubleFloat{T})
38
39
im = randpm (DoubleFloat{T})
You can’t perform that action at this time.
0 commit comments