Skip to content

size(dist)? #48

Description

@penelopeysm

Plaice has some code that looks like this now:

Plaice.vec_length(d::PM.MvNormal) = length(d.μ)
function Plaice.optic_vec(d::PM.MvNormal)
    return [VarNames.@opticof(_[i]) for i in eachindex(d.μ)]
end

# ...

Plaice.vec_length(d::PM.Multinomial) = length(d.p)
function Plaice.optic_vec(d::PM.Multinomial)
    return [VarNames.@opticof(_[i]) for i in eachindex(d.p)]
end

It would be nice if PM defined Base.size(dist) so that I could remove these duplicates.

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