Skip to content

Commit 55aa982

Browse files
Update src/utils.jl
Co-Authored-By: David Widmann <[email protected]>
1 parent cabc01e commit 55aa982

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ end
117117

118118
# ROBUST INITIALISATIONS
119119
# 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)
120+
randrealuni() = 4 * rand() - 2
121+
randrealuni(args...) = 4 .* rand(args...) .- 2
122122

123123
const Transformable = Union{TransformDistribution, SimplexDistribution, PDMatDistribution}
124124

0 commit comments

Comments
 (0)