g2o
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
g2o::cholmod::Cholmod::Impl Class Reference
Collaboration diagram for g2o::cholmod::Cholmod::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl ()
 
 ~Impl ()
 
void freeFactor ()
 

Public Attributes

cholmod_common cholmodCommon
 
CholmodExt cholmodSparse
 
cholmod_factor * cholmodFactor = nullptr
 

Detailed Description

Definition at line 40 of file cholmod_wrapper.cpp.

Constructor & Destructor Documentation

◆ Impl()

g2o::cholmod::Cholmod::Impl::Impl ( )
inline

Definition at line 42 of file cholmod_wrapper.cpp.

42 {
43 cholmod_start(&cholmodCommon);
44
45 // setup ordering strategy
46 cholmodCommon.nmethods = 1;
47 cholmodCommon.method[0].ordering = CHOLMOD_AMD; // CHOLMOD_COLAMD
48 //_cholmodCommon.postorder = 0;
49
50 cholmodCommon.supernodal =
51 CHOLMOD_AUTO; // CHOLMOD_SUPERNODAL; //CHOLMOD_SIMPLICIAL;
52 }

References cholmodCommon.

◆ ~Impl()

g2o::cholmod::Cholmod::Impl::~Impl ( )
inline

Definition at line 53 of file cholmod_wrapper.cpp.

53 {
54 freeFactor();
55 cholmod_finish(&cholmodCommon);
56 }

References cholmodCommon, and freeFactor().

Member Function Documentation

◆ freeFactor()

void g2o::cholmod::Cholmod::Impl::freeFactor ( )
inline

Definition at line 58 of file cholmod_wrapper.cpp.

58 {
59 if (cholmodFactor != nullptr) {
60 cholmod_free_factor(&cholmodFactor, &cholmodCommon);
61 cholmodFactor = nullptr;
62 }
63 }

References cholmodCommon, and cholmodFactor.

Referenced by ~Impl().

Member Data Documentation

◆ cholmodCommon

cholmod_common g2o::cholmod::Cholmod::Impl::cholmodCommon

Definition at line 65 of file cholmod_wrapper.cpp.

Referenced by freeFactor(), Impl(), and ~Impl().

◆ cholmodFactor

cholmod_factor* g2o::cholmod::Cholmod::Impl::cholmodFactor = nullptr

Definition at line 67 of file cholmod_wrapper.cpp.

Referenced by freeFactor().

◆ cholmodSparse

CholmodExt g2o::cholmod::Cholmod::Impl::cholmodSparse

Definition at line 66 of file cholmod_wrapper.cpp.


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