Lagrangian Particle Code for The Simulation of 2D/3D Fluid Dynamics
|
An abstract class for the family of solvers for the least squares problem. More...
#include <ls_solver.h>
Public Member Functions | |
virtual | ~LSSolver () |
Destructor. More... | |
virtual int | solve (double *result, double *b)=0 |
Solves the least squares problem Ax = b. More... | |
Protected Attributes | |
std::size_t | m_iNumRow |
The number of rows in matrix A. | |
std::size_t | m_iNumCol |
The number of columns in matrix A. | |
double * | m_vA |
The matrix A. | |
double * | m_vb |
The vector b (the right-hand-side) | |
An abstract class for the family of solvers for the least squares problem.
Co-author: Yu, Kwangmin (yukwa) on initial interface design ngmi n@gma il.c om
Created on: 2014/09/20
|
inlinevirtual |
Destructor.
|
pure virtual |
Solves the least squares problem Ax = b.
A is a mxn matrix, b is a mx1 vector, and x is the solution which is a nx1 vector.
[out] | result | The x in Ax = b, which is a nx1 vector |
[in] | b | The right-hand-size, which is a mx1 vector |
Implemented in QRSolver.