g2o
Public Member Functions | List of all members
g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition Class Reference

Sub-classing Eigen's SimplicialLDLT to perform ordering with a given ordering. More...

#include <linear_solver_eigen.h>

Inheritance diagram for g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition:
Inheritance graph
[legend]
Collaboration diagram for g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition:
Collaboration graph
[legend]

Public Member Functions

 CholeskyDecomposition ()
 
void analyzePatternWithPermutation (SparseMatrix &a, const PermutationMatrix &permutation)
 

Detailed Description

template<typename MatrixType>
class g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition

Sub-classing Eigen's SimplicialLDLT to perform ordering with a given ordering.

Definition at line 58 of file linear_solver_eigen.h.

Constructor & Destructor Documentation

template<typename MatrixType >
g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition::CholeskyDecomposition ( )
inline

Definition at line 61 of file linear_solver_eigen.h.

61 : Eigen::SimplicialLDLT<SparseMatrix, Eigen::Upper>() {}

Member Function Documentation

template<typename MatrixType >
void g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition::analyzePatternWithPermutation ( SparseMatrix a,
const PermutationMatrix permutation 
)
inline

Definition at line 64 of file linear_solver_eigen.h.

Referenced by g2o::LinearSolverEigen< MatrixType >::computeSymbolicDecomposition().

65  {
66  m_Pinv = permutation;
67  m_P = permutation.inverse();
68  int size = a.cols();
69  SparseMatrix ap(size, size);
70  ap.selfadjointView<Eigen::Upper>() = a.selfadjointView<UpLo>().twistedBy(m_P);
71  analyzePattern_preordered(ap, true);
72  }
Eigen::SparseMatrix< double, Eigen::ColMajor > SparseMatrix

The documentation for this class was generated from the following file: