@@ -101,7 +101,6 @@ getFactorDim(w...) = getDimension(w...)
101101getFactorDim (fg:: AbstractDFG , fctid:: Symbol ) = getFactorDim (getFactor (fg, fctid))
102102
103103
104-
105104# function _getDimensionsPartial(ccw::CommonConvWrapper)
106105# # @warn "_getDimensionsPartial not ready for use yet"
107106# ccw.partialDims
@@ -111,33 +110,28 @@ getFactorDim(fg::AbstractDFG, fctid::Symbol) = getFactorDim(getFactor(fg, fctid)
111110# _getDimensionsPartial(fg::AbstractDFG, lbl::Symbol) = _getDimensionsPartial(getFactor(fg, lbl))
112111
113112
114- # """
115- # $SIGNATURES
116- # Get `.factormetadata` for each CPT in CCW for a specific factor in `fg`.
117- # """
118- # _getFMdThread(ccw::CommonConvWrapper,
119- # thrid::Int=Threads.threadid()) = ccw.cpt[thrid].factormetadata
120- # #
121- # _getFMdThread(fc::Union{GenericFunctionNodeData,DFGFactor},
122- # thrid::Int=Threads.threadid()) = _getFMdThread(_getCCW(fc), thrid)
123- # #
124- # _getFMdThread(dfg::AbstractDFG,
125- # lbl::Symbol,
126- # thrid::Int=Threads.threadid()) = _getFMdThread(_getCCW(dfg, lbl), thrid)
127- # #
128-
129-
130113
131114# extend convenience function (Matrix or Vector{P})
132- function manikde! (variableType:: Union{InstanceType{<:InferenceVariable}, InstanceType{<:AbstractFactor}} ,
133- pts:: AbstractVector{P} ;
134- kw... ) where {P <: Union{<:AbstractArray,<:Number,<:ProductRepr,<:Manifolds.ArrayPartition} }
115+ function manikde! (
116+ variableType:: Union{InstanceType{<:InferenceVariable}, InstanceType{<:AbstractFactor}} ,
117+ pts:: AbstractVector{P} ;
118+ kw...
119+ ) where {P <: Union{<:AbstractArray,<:Number,<:ProductRepr,<:Manifolds.ArrayPartition} }
135120 #
136121 M = getManifold (variableType)
137122 infoPerCoord= ones (AMP. getNumberCoords (M, pts[1 ]))
138123 return AMP. manikde! (M, pts; infoPerCoord, kw... )
139124end
140125
126+ function manikde! (
127+ varT:: InstanceType{<:InferenceVariable} ,
128+ pts:: AbstractVector{<:Tuple} ;
129+ kw...
130+ )
131+ #
132+ manikde! (varT, (t-> ArrayPartition (t... )). (pts); kw... )
133+ end
134+
141135
142136"""
143137 $SIGNATURES
0 commit comments