casacore
Loading...
Searching...
No Matches
NNLSMatrixSolver.h
Go to the documentation of this file.
1//# NNLSMatrixSolver.h: the base class for NNLS solvers of AX=B
2//# Copyright (C) 1994,1995,1999
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef SCIMATH_NNLSMATRIXSOLVER_H
27#define SCIMATH_NNLSMATRIXSOLVER_H
28
29
30#include <casacore/casa/aips.h>
31#include <casacore/scimath/Mathematics/MatrixSolver.h>
32
33namespace casacore { //# NAMESPACE CASACORE - BEGIN
34
35//<summary>
36// NNLSMatrixSolver.h: the base class for NNLS solvers of linear equations AX=B
37//</summary>
38
39// <use visibility=local>
40
41// <reviewed reviewer="" date="",tests="" demos="">
42// </reviewed>
43
44// <prerequisite>
45// <li> Matrix, Vector
46// </prerequisite>
47//
48// <etymology>
49// NNLS stands for Projection Onto Convex Sets. The idea is very simple: to
50// find a solution to AX=B simply take the residual vector B-AX and operate
51// on it to keep only the bits that obey some constraint e.g. positivity.
52// Add this part to the current estimate of the solution vector and iterate.
53// Both CLEAN and Gerchberg-Saxon are NNLS algorithms. If the projection
54// Operators are convex then the process is guaranteed to converge (Youla, 1970).
55// </etymology>
56//
57// <synopsis>
58// NNLSMatrixSolver is a complete class. To use it, simply add Operators
59// <ol>
60// <li> I do not know how to do this yet but it should look something like
61// <src>NNLSMatrixSolver NNLS(amatrix, bvector);NNLS.addOperator(foo);</src>
62// </ol>
63// </synopsis>
64//
65// <todo asof="">
66// <li> Add list of operators
67// </todo>
68
70public:
71
72 // Default Constructor
74
75 // Copy Constructor
77
78 // Create a NNLSMatrixSolver from a matrix A and a Vector B
79 // <note role=warning> A and B are accessed by reference, so don't
80 // modify them during the lifetime of the NNLSMatrixSolver </note>
82
83 // Destructor
85
86 // Solve for the X vector.
88
89protected:
90
91private:
92
93};
94
95
96} //# NAMESPACE CASACORE - END
97
98#endif
NNLSMatrixSolver(const NNLSMatrixSolver &other)
Copy Constructor.
NNLSMatrixSolver(const Matrix< FType > &A, const Vector< FType > &B)
Create a NNLSMatrixSolver from a matrix A and a Vector B Warning: A and B are accessed by reference,...
~NNLSMatrixSolver()
Destructor.
NNLSMatrixSolver()
Default Constructor.
Bool solve()
Solve for the X vector.
this file contains all the compiler specific defines
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40