Trivial change, but VS 2012 was choking on this in release mode.
parent
2b20d61221
commit
d8121a25bb
|
@ -370,9 +370,8 @@ void HessianFactor::hessianDiagonal(double* d) const {
|
|||
for (DenseIndex pos = 0; pos < (DenseIndex)size(); ++pos) {
|
||||
Key j = keys_[pos];
|
||||
// Get the diagonal block, and insert its diagonal
|
||||
Matrix B = info_(pos, pos).selfadjointView();
|
||||
DVector dj = B.diagonal();
|
||||
DMap(d + 9 * j) += dj;
|
||||
const Matrix& B = info_(pos, pos).selfadjointView();
|
||||
DMap(d + 9 * j) += B.diagonal();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue