#include <IterativeSolver.h>
Public Types | |
typedef std::map< Key, KeyInfoEntry > | Base |
Public Member Functions | |
std::vector< size_t > | colSpec () const |
Return a vector of dimensions ordered by ordering() More... | |
KeyInfo () | |
Default Constructor. More... | |
KeyInfo (const GaussianFactorGraph &fg) | |
Construct from Gaussian factor graph, use "Natural" ordering. More... | |
KeyInfo (const GaussianFactorGraph &fg, const Ordering &ordering) | |
Construct from Gaussian factor graph and a given ordering. More... | |
size_t | numCols () const |
Return the total number of columns (scalar variables = sum of dimensions) More... | |
const Ordering & | ordering () const |
Return the ordering. More... | |
VectorValues | x0 () const |
Return VectorValues with zeros, of correct dimension. More... | |
Vector | x0vector () const |
Return zero Vector of correct dimension. More... | |
Protected Member Functions | |
void | initialize (const GaussianFactorGraph &fg) |
Protected Attributes | |
size_t | numCols_ |
Ordering | ordering_ |
Handy data structure for iterative solvers
Definition at line 127 of file IterativeSolver.h.
typedef std::map<Key, KeyInfoEntry> gtsam::KeyInfo::Base |
Definition at line 131 of file IterativeSolver.h.
|
inline |
Default Constructor.
Definition at line 143 of file IterativeSolver.h.
gtsam::KeyInfo::KeyInfo | ( | const GaussianFactorGraph & | fg | ) |
Construct from Gaussian factor graph, use "Natural" ordering.
Definition at line 111 of file IterativeSolver.cpp.
gtsam::KeyInfo::KeyInfo | ( | const GaussianFactorGraph & | fg, |
const Ordering & | ordering | ||
) |
Construct from Gaussian factor graph and a given ordering.
Definition at line 105 of file IterativeSolver.cpp.
vector< size_t > gtsam::KeyInfo::colSpec | ( | ) | const |
Return a vector of dimensions ordered by ordering()
Definition at line 135 of file IterativeSolver.cpp.
|
protected |
Definition at line 117 of file IterativeSolver.cpp.
|
inline |
Return the total number of columns (scalar variables = sum of dimensions)
Definition at line 154 of file IterativeSolver.h.
|
inline |
Return the ordering.
Definition at line 159 of file IterativeSolver.h.
VectorValues gtsam::KeyInfo::x0 | ( | ) | const |
Return VectorValues with zeros, of correct dimension.
Definition at line 144 of file IterativeSolver.cpp.
Vector gtsam::KeyInfo::x0vector | ( | ) | const |
Return zero Vector of correct dimension.
Definition at line 153 of file IterativeSolver.cpp.
|
protected |
Definition at line 136 of file IterativeSolver.h.
|
protected |
Definition at line 135 of file IterativeSolver.h.