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#include <casacore/casa/aips.h>
30#include <casacore/scimath/Mathematics/MatrixSolver.h>
31
32namespace casacore { // # NAMESPACE CASACORE - BEGIN
33
34//<summary>
35// NNLSMatrixSolver.h: the base class for NNLS solvers of linear equations AX=B
36//</summary>
37
38// <use visibility=local>
39
40// <reviewed reviewer="" date="",tests="" demos="">
41// </reviewed>
42
43// <prerequisite>
44// <li> Matrix, Vector
45// </prerequisite>
46//
47// <etymology>
48// NNLS stands for Projection Onto Convex Sets. The idea is very simple: to
49// find a solution to AX=B simply take the residual vector B-AX and operate
50// on it to keep only the bits that obey some constraint e.g. positivity.
51// Add this part to the current estimate of the solution vector and iterate.
52// Both CLEAN and Gerchberg-Saxon are NNLS algorithms. If the projection
53// Operators are convex then the process is guaranteed to converge (Youla, 1970).
54// </etymology>
55//
56// <synopsis>
57// NNLSMatrixSolver is a complete class. To use it, simply add Operators
58// <ol>
59// <li> I do not know how to do this yet but it should look something like
60// <src>NNLSMatrixSolver NNLS(amatrix, bvector);NNLS.addOperator(foo);</src>
61// </ol>
62// </synopsis>
63//
64// <todo asof="">
65// <li> Add list of operators
66// </todo>
67
69 public:
70 // Default Constructor
72
73 // Copy Constructor
75
76 // Create a NNLSMatrixSolver from a matrix A and a Vector B
77 // <note role=warning> A and B are accessed by reference, so don't
78 // modify them during the lifetime of the NNLSMatrixSolver </note>
80
81 // Destructor
83
84 // Solve for the X vector.
86
87 protected:
88 private:
89};
90
91} // namespace casacore
92
93#endif
MatrixSolver()
Default Constructor.
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.
For temporary backward namespace compatibility, use casa as alias for casacore.
Definition mainpage.dox:28
bool Bool
Define the standard types used by Casacore.
Definition aipstype.h:40