We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2fa27b + 55aa982 commit a31e523Copy full SHA for a31e523
src/utils.jl
@@ -117,8 +117,8 @@ end
117
118
# ROBUST INITIALISATIONS
119
# Uniform rand with range 2; ref: https://mc-stan.org/docs/2_19/reference-manual/initialization.html
120
-randrealuni() = Real(4rand()-2)
121
-randrealuni(args...) = map(Real, 4 .* rand(args...) .- 2)
+randrealuni() = 4 * rand() - 2
+randrealuni(args...) = 4 .* rand(args...) .- 2
122
123
const Transformable = Union{TransformDistribution, SimplexDistribution, PDMatDistribution}
124
0 commit comments