Fix build function in Preconditioner
parent
cf34726a81
commit
bc6ce27b28
|
|
@ -141,11 +141,9 @@ void BlockJacobiPreconditioner::build(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* getting the block diagonals over the factors */
|
/* getting the block diagonals over the factors */
|
||||||
BOOST_FOREACH ( const GaussianFactor::shared_ptr &gf, gfg ) {
|
std::map<Key, Matrix> hessianMap =gfg.hessianBlockDiagonal();
|
||||||
std::map<Key, Matrix> hessianMap = gf->hessianBlockDiagonal();
|
|
||||||
BOOST_FOREACH ( const Matrix hessian, hessianMap | boost::adaptors::map_values)
|
BOOST_FOREACH ( const Matrix hessian, hessianMap | boost::adaptors::map_values)
|
||||||
blocks.push_back(hessian);
|
blocks.push_back(hessian);
|
||||||
}
|
|
||||||
|
|
||||||
/* if necessary, allocating the memory for cacheing the factorization results */
|
/* if necessary, allocating the memory for cacheing the factorization results */
|
||||||
if ( nnz > bufferSize_ ) {
|
if ( nnz > bufferSize_ ) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue