#include <iterative.h>
Public Member Functions | |
const Matrix & | A () const |
const Vector & | b () const |
Vector | gradient (const Vector &x) const |
void | multiplyInPlace (const Vector &x, Vector &e) const |
Vector | operator* (const Vector &x) const |
Vector | operator^ (const Vector &e) const |
void | print (const std::string &s="System") const |
System (const Matrix &A, const Vector &b) | |
void | transposeMultiplyAdd (double alpha, const Vector &e, Vector &x) const |
Private Attributes | |
const Matrix & | A_ |
const Vector & | b_ |
Helper class encapsulating the combined system |Ax-b_|^2 Needed to run Conjugate Gradients on matrices
Definition at line 44 of file iterative.h.
Definition at line 52 of file iterative.h.
|
inline |
Access A matrix
Definition at line 57 of file iterative.h.
|
inline |
Access b vector
Definition at line 60 of file iterative.h.
gradient of objective function 0.5*|Ax-b_|^2 at x = A_'*(Ax-b_)
Definition at line 73 of file iterative.h.
Apply operator A in place
Definition at line 83 of file iterative.h.
Apply operator A
Definition at line 78 of file iterative.h.
Apply operator A'*e
Definition at line 63 of file iterative.h.
void gtsam::System::print | ( | const std::string & | s = "System" | ) | const |
Print with optional string
Definition at line 32 of file iterative.cpp.
|
inline |
x += alpha* A'*e
Definition at line 88 of file iterative.h.
|
private |
Definition at line 47 of file iterative.h.
|
private |
Definition at line 48 of file iterative.h.