Working and tested implementation of hessianBlockDiagonal
parent
411381fd88
commit
a2829fffad
|
|
@ -458,6 +458,12 @@ namespace gtsam {
|
|||
/* ************************************************************************* */
|
||||
map<Key,Matrix> JacobianFactor::hessianBlockDiagonal() const {
|
||||
map<Key,Matrix> blocks;
|
||||
for(size_t pos=0; pos<size(); ++pos)
|
||||
{
|
||||
Key j = keys_[pos];
|
||||
Matrix Aj = model_->Whiten(Ab_(pos));
|
||||
blocks.insert(make_pair(j,Aj.transpose()*Aj));
|
||||
}
|
||||
return blocks;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue