Skip to content

Conversation

Affie
Copy link
Member

@Affie Affie commented May 6, 2024

Draft PR not to lose possible value


function (cfm::CalcFactorResidual)(p::ArrayPartition)
points = map(idx->p.x[idx], cfm.varOrderIdxs)
return cfm.sqrt_iΣ * cfm(cfm.meas, points...)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Post AMP 41, we should look at consolidating this with the kernel evaluations done in AMP. Specifically this Malahanobis distance part. The reasoning is that we need to build belief trees on each clique and then be able to evaluation, which is exactly the same requirement as what this code here is doing.

@Affie Affie force-pushed the 23Q4/exp/factor_gradients branch from 90de911 to dd78b10 Compare July 3, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants