-
Notifications
You must be signed in to change notification settings - Fork 21
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
Rename cov_diag
to var
?
#124
Comments
Renaming |
If we were to do this, I'd want to rename all of the places where we refer to diagonals, such as |
Yes, I agree, I thought about this as well and wanted to suggest it but somehow forgot to mention it above 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Distributions.jl uses
var
for the diagonal of the covariance matrix and, e.g., defines a fallback forAbstractMvNormal
: https://github.com/JuliaStats/Distributions.jl/blob/35125579a77b938f8d4a8bd2be23cbf1f2ddf225/src/multivariate/mvnormal.jl#L258So to avoid that users end up with surprisingly inefficient code we could
Statistics.var(gp::FiniteGP) = cov_diag(gp)
cov_diag
tovar
What would you prefer?
The text was updated successfully, but these errors were encountered: