Skip to content

Commit 2ac7e66

Browse files
committed
use covar
1 parent eaeba94 commit 2ac7e66

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/ParametricManoptDev.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ end
6969
function (cfm::CalcFactorManopt)(p)
7070
meas = cfm.meas
7171
idx = cfm.varOrderIdxs
72-
return cfm.calcfactor!(meas, p[idx]...)
73-
# return cfm.sqrt_iΣ * cfm.calcfactor!(meas, p[idx]...)
72+
return cfm.sqrt_iΣ * cfm.calcfactor!(meas, p[idx]...)
7473
end
7574

7675
# cost function f: M->ℝᵈ for Riemannian Levenberg-Marquardt
@@ -84,7 +83,7 @@ function CostF_RLM!(costfuns::Vector{<:CalcFactorManopt}, frontals_p::Vector{T},
8483
return CostF_RLM!(points, costfuns)
8584
end
8685

87-
function (cfm::CostF_RLM!)(M::AbstractManifold, x, p::Vector{T}) where T
86+
function (cfm::CostF_RLM!)(M::AbstractManifold, x::Vector, p::Vector{T}) where T
8887
cfm.points[1:length(p)] .= p
8988
return x .= mapreduce(f -> f(cfm.points), vcat, cfm.costfuns)
9089
end
@@ -148,8 +147,6 @@ function (jacF!::JacF_RLM!)(
148147
X0;
149148
colorvec
150149
)
151-
# @warn "1" Matrix(J)[1:3,1:3]
152-
@warn "2" Matrix(J)[4:6,1:6]
153150
return J
154151
end
155152

0 commit comments

Comments
 (0)