28 #ifndef SCIMATH_MATRIXSOLVER_H
29 #define SCIMATH_MATRIXSOLVER_H
FType Tolerance()
Return the tolerance for solution.
void setSolved(Bool s)
Set status of solution.
FType RNorm
The solution norm i.e.
Bool solved
Has a solution been found?
virtual LogSink & logSink()
Vector< FType > RVector
The residual vector data member.
FType SolTolerance
Tolerance for solution i.e.
void setGain(FType g)
Set the gain for solution.
Bool accurateSolution()
Is the current solution good enough?
virtual Bool solve()
Solve for the X vector.
Bool Solved()
Return status of solution.
MatrixSolver & operator=(const MatrixSolver &other)
Assignment operator: uses reference semantics, i.e., it references the internal arrays of other...
uInt MaxIterations
Maximum number of iterations.
FType Gain()
Return the gain for solution.
MatrixSolver.h: the base class for solvers of linear equations AX=B.
virtual ~MatrixSolver()
Virtual destructor: calls all derived class destructors.
Vector< FType > BVector
the constraint vector data member
uInt MaxIters()
Return the maximum number of iterations.
bool Bool
Define the standard types used by Casacore.
void setAB(const Matrix< FType > &A, const Vector< FType > &B)
Set A matrix and B vector.
void setX(const Vector< FType > &X)
Set initial value of X.
Matrix< FType > AMatrix
the A matrix data member
void setTolerance(FType tol)
Set the tolerance for solution.
const Vector< FType > & getResidual()
Return residual vector B-AX.
FType getNorm()
Return norm of solution i.e.
Distribute LogMessages to their destination(s)
FType BNorm
The data norm i.e.
Vector< FType > XVector
The solution vector data member.
MatrixSolver()
Default Constructor.
const Vector< FType > & getSolution()
Return solution vector.
void setMaxIters(uInt maxiters)
Set the maximum number of iterations.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.