Skip to content

Commit 52203f6

Browse files
committed
Add LinAlg dep
1 parent 03a34e3 commit 52203f6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
1010
Accessors = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
1111
DensityInterface = "b429d917-457f-4dbc-8f4c-0cc954292b1d"
1212
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
13+
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1314
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1415
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1516

1617
[weakdeps]
1718
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
18-
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1919

2020
[extensions]
2121
AbstractPPLDistributionsExt = ["Distributions", "LinearAlgebra"]
@@ -25,8 +25,8 @@ AbstractMCMC = "2, 3, 4, 5"
2525
Accessors = "0.1"
2626
DensityInterface = "0.4"
2727
Distributions = "0.25"
28-
LinearAlgebra = "<0.0.1, 1.10"
2928
JSON = "0.19 - 0.21"
29+
LinearAlgebra = "<0.0.1, 1.10"
3030
Random = "1.6"
3131
StatsBase = "0.32, 0.33, 0.34"
3232
julia = "1.10"

src/varname_leaves.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using LinearAlgebra: LinearAlgebra
2+
13
"""
24
varname_leaves(vn::VarName, val)
35
@@ -214,7 +216,7 @@ function varname_and_value_leaves_inner(vn::VarName, val::NamedTuple)
214216
return Iterators.flatten(iter)
215217
end
216218
# Special types.
217-
function varname_and_value_leaves_inner(vn::VarName, x::Cholesky)
219+
function varname_and_value_leaves_inner(vn::VarName, x::LinearAlgebra.Cholesky)
218220
# TODO: Or do we use `PDMat` here?
219221
return if x.uplo == 'L'
220222
varname_and_value_leaves_inner(Accessors.PropertyLens{:L}() vn, x.L)

0 commit comments

Comments
 (0)