Skip to content

Commit 90b5aee

Browse files
committed
Merge branch 'master' into 24Q3/enh/localchanges
2 parents 6898700 + af18de6 commit 90b5aee

File tree

13 files changed

+67
-67
lines changed

13 files changed

+67
-67
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
version:
19-
- '1.10'
19+
- '1.11'
2020
os:
2121
- ubuntu-latest
2222
arch:
@@ -54,7 +54,7 @@ jobs:
5454
arch:
5555
- x64
5656
version:
57-
- '1.10'
57+
- '1.11'
5858
group:
5959
- 'basic_functional_group'
6060
steps:
@@ -96,7 +96,7 @@ jobs:
9696
arch:
9797
- x64
9898
version:
99-
- '1.10'
99+
- '1.11'
100100
group:
101101
- 'test_cases_group'
102102
steps:
@@ -139,7 +139,7 @@ jobs:
139139
os:
140140
- ubuntu-latest
141141
version:
142-
- '1.10'
142+
- '1.11'
143143
arch:
144144
- x64
145145
group:

Project.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "IncrementalInference"
22
uuid = "904591bb-b899-562f-9e6f-b8df64c7d480"
33
keywords = ["MM-iSAMv2", "Bayes tree", "junction tree", "Bayes network", "variable elimination", "graphical models", "SLAM", "inference", "sum-product", "belief-propagation"]
44
desc = "Implements the Multimodal-iSAMv2 algorithm."
5-
version = "0.35.4"
5+
version = "0.35.5"
66

77
[deps]
88
ApproxManifoldProducts = "9bbbb610-88a1-53cd-9763-118ce10c1f89"
@@ -65,13 +65,13 @@ IncrInfrInterpolationsExt = "Interpolations"
6565

6666
[compat]
6767
AMD = "0.5"
68-
ApproxManifoldProducts = "0.7, 0.8"
68+
ApproxManifoldProducts = "0.9"
6969
BSON = "0.2, 0.3"
7070
Combinatorics = "1.0"
7171
DataStructures = "0.16, 0.17, 0.18"
7272
DelimitedFiles = "1"
7373
DifferentialEquations = "7"
74-
DistributedFactorGraphs = "0.23, 0.24"
74+
DistributedFactorGraphs = "0.25"
7575
Distributions = "0.24, 0.25"
7676
DocStringExtensions = "0.8, 0.9"
7777
FileIO = "1"
@@ -85,15 +85,15 @@ JSON3 = "1"
8585
KernelDensityEstimate = "0.5.6"
8686
LinearAlgebra = "1.10"
8787
ManifoldDiff = "0.3"
88-
Manifolds = "0.9.12"
88+
Manifolds = "0.10"
8989
ManifoldsBase = "0.15"
90-
Manopt = "0.4.40"
91-
MetaGraphs = "0.7"
90+
Manopt = "0.4.40, 0.5"
91+
MetaGraphs = "0.7, 0.8"
9292
Optim = "1"
9393
OrderedCollections = "1"
9494
PrecompileTools = "1"
9595
ProgressMeter = "1"
96-
RecursiveArrayTools = "2.31.1, 3"
96+
RecursiveArrayTools = "3"
9797
Reexport = "1"
9898
SparseDiffTools = "2"
9999
StaticArrays = "1"

src/Serialization/services/SerializingDistributions.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ function unpackDistribution(dtr::PackedZeroMeanDiagNormal)
2424
return MvNormal(LinearAlgebra.Diagonal(map(abs2, sqrt.(dtr.diag))))
2525
end # sqrt.(dtr.diag)
2626
function unpackDistribution(dtr::PackedZeroMeanFullNormal)
27-
return MvNormal(reshape(dtr.cov, length(dtr.mu), :))
27+
d = round(Int,sqrt(size(dtr.cov)[1]))
28+
return MvNormal(reshape(dtr.cov, d, d))
2829
end
2930
unpackDistribution(dtr::PackedDiagNormal) = MvNormal(dtr.mu, sqrt.(dtr.diag))
3031
function unpackDistribution(dtr::PackedFullNormal)

src/parametric/services/ParametricManopt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ function getSparsityPattern(fg, varLabels, factLabels)
259259

260260
vdims = getDimension.(getVariable.(fg, biadj.varLabels))
261261
fdims = getDimension.(getFactor.(fg, biadj.facLabels))
262-
262+
263263
c_end = cumsum(vdims)
264264
r_end = cumsum(fdims)
265265

@@ -272,7 +272,7 @@ function getSparsityPattern(fg, varLabels, factLabels)
272272
vec(CartesianIndices((R_range[R], C_range[C])))
273273
end)
274274

275-
vec(CartesianIndices((R_range[2], C_range[1])))
275+
# vec(CartesianIndices((R_range[2], C_range[1])))
276276

277277
return sparse(getindex.(iter,1), getindex.(iter,2), ones(Bool, length(iter)))
278278
end

src/services/FGOSUtils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function manikde!(
119119
variableType::Union{InstanceType{<:InferenceVariable}, InstanceType{<:AbstractFactor}},
120120
pts::AbstractVector{P};
121121
kw...,
122-
) where {P <: Union{<:AbstractArray, <:Number, <:Manifolds.ArrayPartition}}
122+
) where {P <: Union{<:AbstractArray, <:Number, <: ArrayPartition}}
123123
#
124124
M = getManifold(variableType)
125125
# @info "pts" P typeof(pts[1]) pts[1]

src/services/FactorGraph.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ end
104104
function setVal!(
105105
vd::VariableNodeData,
106106
val::AbstractVector{P},
107-
bw::Array{Float64, 2},
107+
bw::AbstractMatrix{Float64},
108108
) where {P}
109109
setVal!(vd, val)
110110
setBW!(vd, bw)
@@ -113,7 +113,7 @@ end
113113
function setVal!(
114114
v::DFGVariable,
115115
val::AbstractVector{P},
116-
bw::Array{Float64, 2};
116+
bw::AbstractMatrix{Float64};
117117
solveKey::Symbol = :default,
118118
) where {P}
119119
setVal!(v, val; solveKey = solveKey)
@@ -123,15 +123,15 @@ end
123123
function setVal!(
124124
vd::VariableNodeData,
125125
val::AbstractVector{P},
126-
bw::Vector{Float64},
126+
bw::AbstractVector{Float64},
127127
) where {P}
128128
setVal!(vd, val, reshape(bw, length(bw), 1))
129129
return nothing
130130
end
131131
function setVal!(
132132
v::DFGVariable,
133133
val::AbstractVector{P},
134-
bw::Vector{Float64};
134+
bw::AbstractVector{Float64};
135135
solveKey::Symbol = :default,
136136
) where {P}
137137
setVal!(getSolverData(v, solveKey), val, bw)

src/services/GraphInit.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function initVariable!(
391391
# TODO ArrayPartition inputs
392392
_prodrepr(pt) = pt
393393
# _prodrepr(pt::Tuple) = Manifolds.ProductRepr(pt...)
394-
_prodrepr(pt::Tuple) = Manifolds.ArrayPartition(pt...)
394+
_prodrepr(pt::Tuple) = ArrayPartition(pt...)
395395

396396
M = getManifold(vari)
397397
pp = manikde!(M, _prodrepr.(pts); bw)

test/basicGraphsOperations.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ varT = LinearRelative{1}
3030
manikde!(varT, pts)
3131

3232

33-
DFG.@defVariable _TestManiKde IIF.Manifolds.SpecialEuclidean(2) ArrayPartition([0;0.], [1 0; 0 1.])
33+
DFG.@defVariable _TestManiKde IIF.Manifolds.SpecialEuclidean(2; vectors=HybridTangentRepresentation()) ArrayPartition([0;0.], [1 0; 0 1.])
3434

3535
# construct directly with ArrayPartition
3636
pts = [ArrayPartition(randn(2), [1 0; 0 1.]) for _ in 1:100]

test/manifolds/factordiff.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ end
8383
##
8484

8585

86-
M = SpecialEuclidean(2)
86+
M = SpecialEuclidean(2; vectors=HybridTangentRepresentation())
8787
z = ArrayPartition(SA[10.0; 0.0], SMatrix{2,2}(0.0, -1.0, 1.0, 0.0))
8888

8989
p1 = ArrayPartition(SA[0.0; 0.0], SMatrix{2,2}(1, 0, 0, 1.))

test/manifolds/manifolddiff.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ sol = Optim.optimize(f, g_FD!, x0, Optim.ConjugateGradient(; manifold=ManifoldWr
119119
end
120120

121121

122-
@testset "Modified Manifolds.jl ManifoldWrapper <: Optim.Manifold for SpecialEuclidean(2)" begin
122+
@testset "Modified Manifolds.jl ManifoldWrapper <: Optim.Manifold for SpecialEuclidean(2; vectors=HybridTangentRepresentation())" begin
123123
##
124124

125-
M = Manifolds.SpecialEuclidean(2)
125+
M = Manifolds.SpecialEuclidean(2; vectors=HybridTangentRepresentation())
126126
e0 = ArrayPartition([0,0.], [1 0; 0 1.])
127127

128128
x0 = deepcopy(e0)
@@ -171,7 +171,7 @@ end
171171
##
172172

173173

174-
M = Manifolds.SpecialEuclidean(3)
174+
M = Manifolds.SpecialEuclidean(3; vectors=HybridTangentRepresentation())
175175
e0 = ArrayPartition([0,0,0.], Matrix(_Rot.RotXYZ(0,0,0.)))
176176

177177
x0 = deepcopy(e0)
@@ -217,7 +217,7 @@ end
217217
@testset "Optim.Manifolds, SpecialEuclidean(3), using IIF.optimizeManifold_FD" begin
218218
##
219219

220-
M = Manifolds.SpecialEuclidean(3)
220+
M = Manifolds.SpecialEuclidean(3; vectors=HybridTangentRepresentation())
221221
e0 = ArrayPartition([0,0,0.], Matrix(_Rot.RotXYZ(0,0,0.)))
222222

223223
x0 = deepcopy(e0)

0 commit comments

Comments
 (0)