Fix incorrect Vector dimension that was causing CI failures

release/4.3a0
Milo Knowles 2021-03-26 11:26:27 -04:00
parent 05fad78ce9
commit 909b5500f8
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ namespace gtsam {
}
// Compute the tangent vector representation of T and select relevant parameters.
const Vector& full_logmap = T::Logmap(p);
Vector partial_logmap = Vector::Zero(T::dimension);
Vector partial_logmap = Vector::Zero(indices_.size());
for (size_t i = 0; i < indices_.size(); ++i) {
partial_logmap(i) = full_logmap(indices_.at(i));
}