Skip to content

rand(Beta(1.0f0, 1.0f0)) returns Float64 #1907

@limarta

Description

@limarta

Hi.

Samples from Beta(1.0f0, 1.0f0) are Float64 rather than the expected Float32. This behavior seems to happen only for alpha=beta=1 and no other case. This behavior occurs when this condition is satisfied. For example

Beta(1.0f0, 1.0f0)::Float64
Beta(0.8f0, 0.8f0)::Float64
Beta(1.0f0, 2.0f0)::Float32
Beta(2.0f0, 1.0f0)::Float32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions