@@ -22,7 +22,7 @@ function _getDimensionsPartial(fg::AbstractDFG, lbl::Symbol)
2222end
2323
2424# Helper function to construct CF from a CCW
25- function CalcFactor (
25+ function CalcFactorNormSq (
2626 ccwl:: CommonConvWrapper ;
2727 factor = ccwl. usrfnc!,
2828 _sampleIdx = ccwl. particleidx[],
@@ -35,7 +35,7 @@ function CalcFactor(
3535)
3636 #
3737 # FIXME using ccwl.dummyCache is not thread-safe
38- return CalcFactor (
38+ return CalcFactorNormSq (
3939 factor,
4040 _sampleIdx,
4141 _legacyParams,
@@ -90,7 +90,7 @@ function calcZDim(cf::CalcFactor{T}) where {T <: AbstractFactor}
9090 return length (smpls)
9191end
9292
93- calcZDim (ccw:: CommonConvWrapper ) = calcZDim (CalcFactor (ccw))
93+ calcZDim (ccw:: CommonConvWrapper ) = calcZDim (CalcFactorNormSq (ccw))
9494
9595calcZDim (cf:: CalcFactor{<:GenericMarginal} ) = 0
9696
@@ -122,7 +122,7 @@ function calcFactorResidual(
122122 args... ;
123123 ccw:: CommonConvWrapper = IIF. _getCCW (dfgfct),
124124)
125- return CalcFactor (ccw)(args... )
125+ return CalcFactorNormSq (ccw)(args... )
126126end
127127function calcFactorResidual (dfg:: AbstractDFG , fctsym:: Symbol , args... )
128128 return calcFactorResidual (getFactor (dfg, fctsym), args... )
@@ -171,7 +171,7 @@ function calcFactorResidualTemporary(
171171 measurement
172172 else
173173 # now use the CommonConvWrapper object in `_dfgfct`
174- cfo = CalcFactor (_getCCW (_dfgfct))
174+ cfo = CalcFactorNormSq (_getCCW (_dfgfct))
175175 sampleFactor (cfo, 1 )[1 ]
176176 end
177177
@@ -397,7 +397,7 @@ function _createCCW(
397397 # create a temporary CalcFactor object for extracting the first sample
398398 # TODO , deprecate this: guess measurement points type
399399 # MeasType = Vector{Float64} # FIXME use `usrfnc` to get this information instead
400- _cf = CalcFactor (
400+ _cf = CalcFactorNormSq (
401401 usrfnc,
402402 1 ,
403403 _varValsAll,
0 commit comments