Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order struct in JunctionTree Module #19

Open
jpfairbanks opened this issue Oct 3, 2024 · 0 comments
Open

Order struct in JunctionTree Module #19

jpfairbanks opened this issue Oct 3, 2024 · 0 comments

Comments

@jpfairbanks
Copy link
Member

@samuelsonric, what is going on with the Order struct?

# A total ordering of the numbers {1, ..., n}.
struct Order <: AbstractVector{Int}
    order::Vector{Int}
    index::Vector{Int}
end

It seems like this is just storing a permutation? Should this just be using things like sortperm and invperm from the standard library?

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

No branches or pull requests

1 participant