Skip to content

Improve precision of rand sampling without conversion #79

Closed
@maleadt

Description

@maleadt

The implementation from #73 is slightly less precise than necessary, why not use the same one used by Float16? (e.g. BFloat16(Float32(rand(r, UInt8)) * Float32(0x1.0p-8))

Originally posted by @oscardssmith in #73 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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