Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
gtsam::KeyInfo Class Reference

#include <IterativeSolver.h>

Inheritance diagram for gtsam::KeyInfo:
Inheritance graph
[legend]

Public Types

typedef std::map< Key, KeyInfoEntryBase
 

Public Member Functions

std::vector< size_tcolSpec () 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 Orderingordering () 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_
 

Detailed Description

Handy data structure for iterative solvers

Definition at line 126 of file IterativeSolver.h.

Member Typedef Documentation

Definition at line 130 of file IterativeSolver.h.

Constructor & Destructor Documentation

gtsam::KeyInfo::KeyInfo ( )
inline

Default Constructor.

Definition at line 142 of file IterativeSolver.h.

gtsam::KeyInfo::KeyInfo ( const GaussianFactorGraph fg)

Construct from Gaussian factor graph, use "Natural" ordering.

Definition at line 106 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 100 of file IterativeSolver.cpp.

Member Function Documentation

vector< size_t > gtsam::KeyInfo::colSpec ( ) const

Return a vector of dimensions ordered by ordering()

Definition at line 130 of file IterativeSolver.cpp.

void gtsam::KeyInfo::initialize ( const GaussianFactorGraph fg)
protected

Definition at line 112 of file IterativeSolver.cpp.

size_t gtsam::KeyInfo::numCols ( ) const
inline

Return the total number of columns (scalar variables = sum of dimensions)

Definition at line 153 of file IterativeSolver.h.

const Ordering& gtsam::KeyInfo::ordering ( ) const
inline

Return the ordering.

Definition at line 158 of file IterativeSolver.h.

VectorValues gtsam::KeyInfo::x0 ( ) const

Return VectorValues with zeros, of correct dimension.

Definition at line 139 of file IterativeSolver.cpp.

Vector gtsam::KeyInfo::x0vector ( ) const

Return zero Vector of correct dimension.

Definition at line 148 of file IterativeSolver.cpp.

Member Data Documentation

size_t gtsam::KeyInfo::numCols_
protected

Definition at line 135 of file IterativeSolver.h.

Ordering gtsam::KeyInfo::ordering_
protected

Definition at line 134 of file IterativeSolver.h.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:58:17