Skip to content

Commit

Permalink
align convention with ceres doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
B1ueber2y committed Jun 20, 2024
1 parent d120066 commit 23bad6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _pyceres/factors/bindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace py = pybind11;

inline Eigen::MatrixXd SqrtInformation(const Eigen::MatrixXd& covariance) {
return covariance.inverse().llt().matrixL();
return covariance.inverse().llt().matrixL().transpose();
}

// Mahalanobis squared distance between two parameters.
Expand Down Expand Up @@ -39,7 +39,7 @@ class NormalError {
}
Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, 1>> residuals(residuals_ptr,
dimension);
residuals.applyOnTheLeft(sqrt_information_.transpose().template cast<T>());
residuals.applyOnTheLeft(sqrt_information_.template cast<T>());
return true;
}

Expand Down

0 comments on commit 23bad6e

Please sign in to comment.