Go to the documentation of this file.
28 #ifndef SCIMATH_MATRIXSOLVER_H
29 #define SCIMATH_MATRIXSOLVER_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/Arrays/Array.h>
34 #include <casacore/casa/Arrays/ArrayMath.h>
35 #include <casacore/casa/Arrays/Matrix.h>
36 #include <casacore/casa/Arrays/Vector.h>
38 #include <casacore/casa/Logging/LogSink.h>
39 #include <casacore/casa/Logging/LogMessage.h>
MatrixSolver(const MatrixSolver &other)
Copy Constructor.
Bool Solved()
Return status of solution.
uInt MaxIters()
Return the maximum number of iterations.
void setX(const Vector< FType > &X)
Set initial value of X.
void setSolved(Bool s)
Set status of solution.
void setMaxIters(uInt maxiters)
Set the maximum number of iterations.
void setAB(const Matrix< FType > &A, const Vector< FType > &B)
Set A matrix and B vector.
const Vector< FType > & getResidual()
Return residual vector B-AX.
FType BNorm
The data norm i.e.
FType getNorm()
Return norm of solution i.e.
FType Gain()
Return the gain for solution.
void setGain(FType g)
Set the gain for solution.
void setTolerance(FType tol)
Set the tolerance for solution.
FType SolTolerance
Tolerance for solution i.e.
Vector< FType > BVector
the constraint vector data member
Bool accurateSolution()
Is the current solution good enough?
const Vector< FType > & getSolution()
Return solution vector.
Matrix< FType > AMatrix
the A matrix data member
MatrixSolver(const Matrix< FType > &A, const Vector< FType > &B)
Create a MatrixSolver from a matrix A and a Vector B Warning: A and B are accessed by reference,...
this file contains all the compiler specific defines
uInt MaxIterations
Maximum number of iterations.
FType RNorm
The solution norm i.e.
Bool solved
Has a solution been found?
virtual ~MatrixSolver()
Virtual destructor: calls all derived class destructors.
Vector< FType > XVector
The solution vector data member.
Vector< FType > RVector
The residual vector data member.
virtual LogSink & logSink()
bool Bool
Define the standard types used by Casacore.
MatrixSolver()
Default Constructor.
FType Tolerance()
Return the tolerance for solution.
virtual Bool solve()
Solve for the X vector.
MatrixSolver & operator=(const MatrixSolver &other)
Assignment operator: uses reference semantics, i.e., it references the internal arrays of other.