Fixed warning
parent
df0d8bb63c
commit
8740e9d8fd
|
|
@ -454,7 +454,7 @@ void HessianFactor::updateATA(const JacobianFactor& update, const Scatter& scatt
|
||||||
DenseIndex slot2 = (j2 == update.size()) ? this->info_.nBlocks()-1 : slots[j2];
|
DenseIndex slot2 = (j2 == update.size()) ? this->info_.nBlocks()-1 : slots[j2];
|
||||||
for(DenseIndex j1=0; j1<=j2; ++j1) { // Vertical block of Hessian
|
for(DenseIndex j1=0; j1<=j2; ++j1) { // Vertical block of Hessian
|
||||||
DenseIndex slot1 = (j1 == update.size()) ? this->info_.nBlocks()-1 : slots[j1];
|
DenseIndex slot1 = (j1 == update.size()) ? this->info_.nBlocks()-1 : slots[j1];
|
||||||
DenseIndex off0 = updateBlocks.offset(0);
|
updateBlocks.offset(0);
|
||||||
if(slot2 > slot1)
|
if(slot2 > slot1)
|
||||||
info_(slot1, slot2).noalias() += updateBlocks(j1).transpose() * updateBlocks(j2);
|
info_(slot1, slot2).noalias() += updateBlocks(j1).transpose() * updateBlocks(j2);
|
||||||
else if(slot1 > slot2)
|
else if(slot1 > slot2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue