DP3
Public Member Functions | List of all members
dp3::ddecal::NormalEquationsSolver Class Referencefinal

#include <NormalEquationsSolver.h>

Inheritance diagram for dp3::ddecal::NormalEquationsSolver:
dp3::ddecal::LLSSolver

Public Member Functions

 NormalEquationsSolver (int m, int n, int nrhs)
 
bool Solve (std::complex< float > *a, std::complex< float > *b) override
 
- Public Member Functions inherited from dp3::ddecal::LLSSolver
 LLSSolver (int m, int n, int nrhs)
 
virtual ~LLSSolver ()
 
virtual bool Solve (complex *a, complex *b, [[maybe_unused]] complex *initial_value)
 

Additional Inherited Members

- Public Types inherited from dp3::ddecal::LLSSolver
using complex = std::complex< float >
 
- Static Public Member Functions inherited from dp3::ddecal::LLSSolver
static std::unique_ptr< LLSSolverMake (LLSSolverType lss_type, int m, int n, int nrhs)
 
static LLSSolverType ParseType (const std::string &solver)
 
- Protected Attributes inherited from dp3::ddecal::LLSSolver
int m_
 
int n_
 
int nrhs_
 

Constructor & Destructor Documentation

◆ NormalEquationsSolver()

dp3::ddecal::NormalEquationsSolver::NormalEquationsSolver ( int  m,
int  n,
int  nrhs 
)
inline

Member Function Documentation

◆ Solve()

bool dp3::ddecal::NormalEquationsSolver::Solve ( std::complex< float > *  a,
std::complex< float > *  b 
)
inlineoverridevirtual

Find X that minimizes || B - A*X || (i.e. best solution to A*X = B ; A (MxN) * X (NxNRHS) = B (MxNRHS) Inputs are ordered column-major.

Parameters
aThe M-by-N matrix A
bOn entry: input matrix of size M x NRHS, but with leading dimension max(M, N) On succesful exit: the solution vectors, stored columnwise (N, NRHS)

Implements dp3::ddecal::LLSSolver.


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