Skip to content

Use const generics, try_from_fn for the Dirichlet distribution #8

Open
@newpavlov

Description

@newpavlov

Right now the Dirichlet distribution allocates inner state and sampled values, even though it can be naturally expressed in terms of arrays and AFAIK is usually used with fixed number of dimensions.

WeightedIndex also can be expressed in terms of arrays, but in practice number of weights can be not known at compile time. We could introduce a "fixed" variant in addition to the existing "dynamic" one.

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