g2o
Loading...
Searching...
No Matches
Public Member Functions | List of all members
g2o::LinearSolverEigen< MatrixType >::CholeskyDecomposition Class Reference

Sub-classing Eigen's SimplicialLLT 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)
 use a given permutation for analyzing the pattern of the sparse matrix
 

Detailed Description

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

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

Definition at line 65 of file linear_solver_eigen.h.

Constructor & Destructor Documentation

◆ CholeskyDecomposition()

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

Definition at line 67 of file linear_solver_eigen.h.

Eigen::SimplicialLLT< SparseMatrix, Eigen::Upper > CholeskyDecompositionBase

Member Function Documentation

◆ analyzePatternWithPermutation()

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

use a given permutation for analyzing the pattern of the sparse matrix

Definition at line 70 of file linear_solver_eigen.h.

71 {
72 m_Pinv = permutation;
73 m_P = permutation.inverse();
74 int size = a.cols();
75 SparseMatrix ap(size, size);
76 ap.selfadjointView<Eigen::Upper>() =
77 a.selfadjointView<UpLo>().twistedBy(m_P);
78 analyzePattern_preordered(ap, false);
79 }
Eigen::SparseMatrix< double, Eigen::ColMajor > SparseMatrix

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


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