cisst-saw
|
#include <nmrLDPSolver.h>
Public Member Functions | |
nmrLDPSolver (void) | |
nmrLDPSolver (CISSTNETLIB_INTEGER m, CISSTNETLIB_INTEGER n) | |
nmrLDPSolver (vctDynamicMatrix< CISSTNETLIB_DOUBLE > &G, vctDynamicMatrix< CISSTNETLIB_DOUBLE > &h) | |
void | Allocate (CISSTNETLIB_INTEGER m, CISSTNETLIB_INTEGER n) |
void | Allocate (vctDynamicMatrix< CISSTNETLIB_DOUBLE > &G, vctDynamicMatrix< CISSTNETLIB_DOUBLE > &CMN_UNUSED(h)) |
CISST_EXPORT void | Solve (vctDynamicMatrix< CISSTNETLIB_DOUBLE > &G, vctDynamicMatrix< CISSTNETLIB_DOUBLE > &h) throw (std::runtime_error) |
const vctDynamicMatrix < CISSTNETLIB_DOUBLE > & | GetX (void) const |
Protected Attributes | |
CISSTNETLIB_INTEGER | M |
CISSTNETLIB_INTEGER | N |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | E |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | CopyE |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | F |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | R |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | U |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | W |
vctDynamicMatrix < CISSTNETLIB_INTEGER > | Index |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | Zz |
vctDynamicMatrix < CISSTNETLIB_DOUBLE > | X |
Algorithm LDP: Least Distance Programming
The original version of this code was developed by Charles L. Lawson and Richard J. Hanson at Jet Propulsion Laboratory 1974 MAR 1, and published in the book "Solving Least Squares Problems", Prentice-Hall, 1974.
Given a matrix G and a
vector h, compute a
vector X, that solves the linear distance problem:
The data members of this class are:
|
inline |
Default constructor. This constructor doesn't allocate any memory. If you use this constructor, you will need to use one of the Allocate() methods before you can use the Solve method.
|
inline |
Constructor with memory allocation. This constructor allocates the memory based on M and N. It relies on the method Allocate(). The next call to the Solve() method will check that the parameters match the dimension.
m | Number of rows of G |
n | Number of columns of G |
|
inline |
Constructor with memory allocation. This constructor allocates the memory based on the actual input of the Solve() method. It relies on the method Allocate(). The next call to the Solve() method will check that the parameters match the dimension.
|
inline |
This method allocates the memory based on Ma, Na and Mg. The next call to the Solve() method will check that the parameters match the dimension.
m | Number of rows of G |
n | Number of columns of G |
|
inline |
Allocate memory to solve this problem. This method provides a convenient way to extract the required sizes from the input containers. The next call to the Solve() method will check that the parameters match the dimension.
|
inline |
Get X. This method must be used after Solve().
CISST_EXPORT void nmrLDPSolver::Solve | ( | vctDynamicMatrix< CISSTNETLIB_DOUBLE > & | G, |
vctDynamicMatrix< CISSTNETLIB_DOUBLE > & | h | ||
) | |||
throw | ( | std::runtime_error | |
) |
Given a matrix G and a
vector h, compute a
vector X, that solves the linear distance problem:
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |