27 #ifndef G2O_MARGINAL_COVARIANCE_CHOLESKY_H 28 #define G2O_MARGINAL_COVARIANCE_CHOLESKY_H 37 #include <unordered_map> 39 #include <tr1/unordered_map> 53 typedef std::tr1::unordered_map<int, double>
LookupMap;
LookupMap _map
hash look up table for the already computed entries
std::tr1::unordered_map< int, double > LookupMap
void setCholeskyFactor(int n, int *Lp, int *Li, double *Lx, int *permInv)
computing the marginal covariance given a cholesky factor (lower triangle of the factor) ...
int * _Ai
row indices of the CCS storage
int * _Ap
column pointer of the CCS storage
MarginalCovarianceCholesky()
void computeCovariance(double **covBlocks, const std::vector< int > &blockIndices)
double * _Ax
values of the cholesky factor
~MarginalCovarianceCholesky()
int _n
L is an n X n matrix.
int * _perm
permutation of the cholesky factor. Variable re-ordering for better fill-in
std::vector< double > _diag
cache 1 / H_ii to avoid recalculations
Sparse matrix which uses blocks.
double computeEntry(int r, int c)
int computeIndex(int r, int c) const
compute the index used for hashing