Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 26 additions & 18 deletions src/ParametricUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -367,24 +367,32 @@ end
function cost_cfp(
@nospecialize(cfp::CalcFactorMahalanobis),
@nospecialize(p::AbstractArray),
vi::NTuple{1, Int},
)
return cfp(p[vi[1]])
end
function cost_cfp(
@nospecialize(cfp::CalcFactorMahalanobis),
@nospecialize(p::AbstractArray),
vi::NTuple{2, Int},
)
return cfp(p[vi[1]], p[vi[2]])
end
function cost_cfp(
@nospecialize(cfp::CalcFactorMahalanobis),
@nospecialize(p::AbstractArray),
vi::NTuple{3, Int},
)
return cfp(p[vi[1]], p[vi[2]], p[vi[3]])
end
vi::NTuple{N, Int},
) where N
cfp(map(v->p[v],vi)...)
end
# function cost_cfp(
# @nospecialize(cfp::CalcFactorMahalanobis),
# @nospecialize(p::AbstractArray),
# vi::NTuple{1, Int},
# )
# return cfp(p[vi[1]])
# end
# function cost_cfp(
# @nospecialize(cfp::CalcFactorMahalanobis),
# @nospecialize(p::AbstractArray),
# vi::NTuple{2, Int},
# )
# return cfp(p[vi[1]], p[vi[2]])
# end
# function cost_cfp(
# @nospecialize(cfp::CalcFactorMahalanobis),
# @nospecialize(p::AbstractArray),
# vi::NTuple{3, Int},
# )
# return cfp(p[vi[1]], p[vi[2]], p[vi[3]])
# end


# function (gsc::GraphSolveContainer)(f::Vector{T}, Xc::Vector{T}, ::Val{true}) where T <: Real
# #
Expand Down
2 changes: 1 addition & 1 deletion src/entities/FactorOperationalMemory.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ mutable struct CommonConvWrapper{T <: AbstractFactor, NTP <: Tuple, G, MT, CT} <
dummyCache::CT

#Consolidation from FMD
fullvariables::Vector{DFGVariable}
fullvariables::Vector{<:DFGVariable}

#Consolidation from CPT
# the actual particle being solved at this moment
Expand Down