Skip to content

Commit

Permalink
Change diagm() to Diagonal() for 1.1 functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidan Gleich committed Aug 20, 2021
1 parent 6584f57 commit 47aab0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions_ext.jl
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ function DegenerateMvNormal(μ::Vector, σ::Matrix; stdev::Bool = true)
false, Matrix{eltype(μ)}(undef,0,0))
else
U, λ_vals, Vt = svd(σ)
stdevs = diagm(sqrt.(λ_vals)) * Vt'
stdevs = Diagonal(sqrt.(λ_vals)) * Vt'
#Q,R = qr(stdevs)
return DegenerateMvNormal(μ, stdevs,
Matrix{eltype(μ)}(undef,0,0), Vector{eltype(μ)}(undef,0),
Expand Down

0 comments on commit 47aab0c

Please sign in to comment.