GTSAM  4.0.2
C++ library for smoothing and mapping (SAM)
Public Member Functions | List of all members
gtsam::System Class Reference

#include <iterative.h>

Public Member Functions

 System (const Matrix &A, const Vector &b)
 
const Matrix & A () const
 
const Vector & b () const
 
Vector operator^ (const Vector &e) const
 
void print (const std::string &s="System") const
 
Vector gradient (const Vector &x) const
 
Vector operator* (const Vector &x) const
 
void multiplyInPlace (const Vector &x, Vector &e) const
 
void transposeMultiplyAdd (double alpha, const Vector &e, Vector &x) const
 

Detailed Description

Helper class encapsulating the combined system |Ax-b_|^2 Needed to run Conjugate Gradients on matrices

Member Function Documentation

◆ A()

const Matrix& gtsam::System::A ( ) const
inline

Access A matrix

◆ b()

const Vector& gtsam::System::b ( ) const
inline

Access b vector

◆ gradient()

Vector gtsam::System::gradient ( const Vector &  x) const
inline

gradient of objective function 0.5*|Ax-b_|^2 at x = A_'*(Ax-b_)

◆ multiplyInPlace()

void gtsam::System::multiplyInPlace ( const Vector &  x,
Vector &  e 
) const
inline

Apply operator A in place

◆ operator*()

Vector gtsam::System::operator* ( const Vector &  x) const
inline

Apply operator A

◆ operator^()

Vector gtsam::System::operator^ ( const Vector &  e) const
inline

Apply operator A'*e

◆ print()

void gtsam::System::print ( const std::string &  s = "System") const

Print with optional string

◆ transposeMultiplyAdd()

void gtsam::System::transposeMultiplyAdd ( double  alpha,
const Vector &  e,
Vector &  x 
) const
inline

x += alpha* A'*e


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