Skip to content

Commit

Permalink
take comment all the way
Browse files Browse the repository at this point in the history
  • Loading branch information
varunagrawal committed Jan 3, 2024
1 parent 0d05810 commit 82e0c0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gtsam/linear/GaussianConditional.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ namespace gtsam {
size_t n = d().size();
// Sigma = (R'R)^{-1}, det(Sigma) = det((R'R)^{-1}) = det(R'R)^{-1}
// log det(Sigma) = -log(det(R'R)) = -2*log(det(R))
// Hence, log det(Sigma)) = - 2.0 * logDeterminant()
// Hence, log det(Sigma)) = -2.0 * logDeterminant()
// which gives log = -0.5*n*log(2*pi) - 0.5*(-2.0 * logDeterminant())
// = -0.5*n*log(2*pi) + (0.5*2.0 * logDeterminant())
// = -0.5*n*log(2*pi) + logDeterminant()
return -0.5 * n * log2pi + logDeterminant();
}

Expand Down

0 comments on commit 82e0c0d

Please sign in to comment.