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

Should distributions have == defined? #1117

Closed
nickrobinson251 opened this issue May 19, 2020 · 3 comments · Fixed by #1122
Closed

Should distributions have == defined? #1117

nickrobinson251 opened this issue May 19, 2020 · 3 comments · Fixed by #1122

Comments

@nickrobinson251
Copy link
Contributor

This took me by surprise, so i wondered if this was intentioned behaviour or if it was a missing feature?

julia> mv = MvNormal(rand(3), let x=rand(3,3); x*x'+I; end);

julia> mv2 = deepcopy(mv);

julia> mv == mv2
false
@johnczito
Copy link
Member

It's intended in the sense that it's a general phenomenon not specific to distributions: [1], [2], [3].

@nickrobinson251
Copy link
Contributor Author

right, makes sense, so i think we file it under "missing feature"?

I presume that we want mv == mv2 in the example above, and it's just that this is a case where Julia doesn't give us it for free.

@nickrobinson251
Copy link
Contributor Author

xref #696

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

Successfully merging a pull request may close this issue.

2 participants