@@ -20,7 +20,7 @@ dfg, _dfgfct = IIF._buildGraphByFactorAndTypes!(fct, varTypes, varPts)
2020
2121# # test the evaluation of factor without
2222
23- B = IIF. _evalFactorTemporary! (EuclidDistance (Normal (10 ,1 )), 2 , ([10 ;],), varTypes , varPts );
23+ B = IIF. _evalFactorTemporary! (EuclidDistance (Normal (10 ,1 )), varTypes, 2 , ([10 ;],), varPts );
2424
2525@test_broken B isa Vector{Vector{Float64}}
2626@test isapprox ( B[1 ], [10.0 ;], atol= 1e-6 )
@@ -39,25 +39,25 @@ pts = ([0;],[9.5;])
3939
4040# #
4141
42- slack_resid = calcFactorResidualTemporary (fct, measurement, varTypes , pts)
42+ slack_resid = calcFactorResidualTemporary (fct, varTypes, measurement , pts)
4343
4444# #
4545
46- coord_1 = IIF. _evalFactorTemporary! (fct, 1 , measurement, varTypes , pts, _slack= slack_resid )
46+ coord_1 = IIF. _evalFactorTemporary! (fct, varTypes, 1 , measurement , pts, _slack= slack_resid )
4747@test length (coord_1) == 1
4848@test isapprox ( coord_1[1 ], [0.0 ], atol= 1e-6 )
4949
50- coord_2 = IIF. _evalFactorTemporary! (fct, 2 , measurement, varTypes , pts, _slack= slack_resid )
50+ coord_2 = IIF. _evalFactorTemporary! (fct, varTypes, 2 , measurement , pts, _slack= slack_resid )
5151@test length (coord_2) == 1
5252@test isapprox ( coord_2[1 ], [9.5 ], atol= 1e-6 )
5353
5454# #
5555
56- coord_1 = IIF. _evalFactorTemporary! (fct, 1 , measurement, varTypes , pts )
56+ coord_1 = IIF. _evalFactorTemporary! (fct, varTypes, 1 , measurement , pts )
5757@test length (coord_1) == 1
5858@test isapprox ( coord_1[1 ], [- 0.5 ], atol= 1e-6 )
5959
60- coord_2 = IIF. _evalFactorTemporary! (fct, 2 , measurement, varTypes , pts )
60+ coord_2 = IIF. _evalFactorTemporary! (fct, varTypes, 2 , measurement , pts )
6161@test length (coord_2) == 1
6262@test isapprox ( coord_2[1 ], [10.0 ], atol= 1e-6 )
6363
@@ -89,7 +89,7 @@ _fg,_ = IIF._buildGraphByFactorAndTypes!(fct, varTypes, pts);
8989
9090_fg = initfg ()
9191
92- slack_resid = calcFactorResidualTemporary (fct, measurement, varTypes , pts, tfg= _fg)
92+ slack_resid = calcFactorResidualTemporary (fct, varTypes, measurement , pts, tfg= _fg)
9393
9494@test length (getVal (_fg[:x1 ])) == 1
9595@test length (getVal (_fg[:x1 ])[1 ]) == 2
@@ -100,7 +100,7 @@ slack_resid = calcFactorResidualTemporary(fct, measurement, varTypes, pts, tfg=_
100100# # Manually provide a common temp graph and force no factor and same variables via keywords
101101
102102tfg,_ = IIF. _buildGraphByFactorAndTypes! (fct, varTypes, pts);
103- coord_1 = IIF. _evalFactorTemporary! (fct, 1 , measurement, varTypes , pts, _slack= slack_resid, tfg= tfg, newFactor= false , currNumber= 0 )
103+ coord_1 = IIF. _evalFactorTemporary! (fct, varTypes, 1 , measurement , pts, _slack= slack_resid, tfg= tfg, newFactor= false , currNumber= 0 )
104104
105105# #
106106
@@ -109,23 +109,23 @@ coord_1 = IIF._evalFactorTemporary!(fct, 1, measurement, varTypes, pts, _slack=s
109109
110110@test isapprox ( coord_1[1 ], [0 ;0.0 ], atol= 1e-6 )
111111
112- coord_2 = IIF. _evalFactorTemporary! (fct, 2 , measurement, varTypes , pts, _slack= slack_resid )
112+ coord_2 = IIF. _evalFactorTemporary! (fct, varTypes, 2 , measurement , pts, _slack= slack_resid )
113113@test length (coord_2) == 1
114114@test length (coord_2[1 ]) == 2
115115
116116@test isapprox ( coord_2[1 ], [9.5 ; 0 ], atol= 1e-6 )
117117
118118# # Repeat the same test but allow _evalFactorTemporary to self construct internal temporary graph
119119
120- coord_1 = IIF. _evalFactorTemporary! (fct, 1 , measurement, varTypes , pts )
120+ coord_1 = IIF. _evalFactorTemporary! (fct, varTypes, 1 , measurement , pts )
121121
122122# #
123123@test length (coord_1) == 1
124124@test length (coord_1[1 ]) == 2
125125
126126@test isapprox ( coord_1[1 ], [- 0.5 ;0 ], atol= 1e-6 )
127127
128- coord_2 = IIF. _evalFactorTemporary! (fct, 2 , measurement, varTypes , pts )
128+ coord_2 = IIF. _evalFactorTemporary! (fct, varTypes, 2 , measurement , pts )
129129@test length (coord_2) == 1
130130@test length (coord_2[1 ]) == 2
131131
0 commit comments