#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 125 of file IterativeSolver.h.
typedef std::map<Key, KeyInfoEntry> gtsam::KeyInfo::Base |
Definition at line 129 of file IterativeSolver.h.
|
inline |
Default Constructor.
Definition at line 141 of file IterativeSolver.h.
gtsam::KeyInfo::KeyInfo | ( | const GaussianFactorGraph & | fg | ) |
Construct from Gaussian factor graph, use "Natural" ordering.
Definition at line 105 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 99 of file IterativeSolver.cpp.
vector< size_t > gtsam::KeyInfo::colSpec | ( | ) | const |
Return a vector of dimensions ordered by ordering()
Definition at line 129 of file IterativeSolver.cpp.
|
protected |
Definition at line 111 of file IterativeSolver.cpp.
|
inline |
Return the total number of columns (scalar variables = sum of dimensions)
Definition at line 152 of file IterativeSolver.h.
|
inline |
Return the ordering.
Definition at line 157 of file IterativeSolver.h.
VectorValues gtsam::KeyInfo::x0 | ( | ) | const |
Return VectorValues with zeros, of correct dimension.
Definition at line 138 of file IterativeSolver.cpp.
Vector gtsam::KeyInfo::x0vector | ( | ) | const |
Return zero Vector of correct dimension.
Definition at line 147 of file IterativeSolver.cpp.
|
protected |
Definition at line 134 of file IterativeSolver.h.
|
protected |
Definition at line 133 of file IterativeSolver.h.