Skip to content

Fix type unstable Uniform#1797

Closed
prbzrg wants to merge 1 commit into
JuliaStats:masterfrom
prbzrg:fix-uni-2
Closed

Fix type unstable Uniform#1797
prbzrg wants to merge 1 commit into
JuliaStats:masterfrom
prbzrg:fix-uni-2

Conversation

@prbzrg

@prbzrg prbzrg commented Nov 6, 2023

Copy link
Copy Markdown

this fixes:

julia> dist = Uniform{Float32}(-0.1f0, 0.1f0)
Uniform{Float32}(a=-0.1f0, b=0.1f0)

julia> typeof(rand(dist))
Float64

@devmotion

Copy link
Copy Markdown
Member

See #1796 and other discussions in the repo for why this is inconsistent with the current design of Distributions.

@devmotion devmotion closed this Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants