org.jutil.math.matrix
Class QRLinSolver
java.lang.Object
|
+--org.jutil.math.matrix.AbstractSolver
|
+--org.jutil.math.matrix.QRLinSolver
- All Implemented Interfaces:
- LinSolver
- public class QRLinSolver
- extends AbstractSolver
- implements LinSolver
A class of objects that solve linear systems of equations represented
as a matrix using its QR decomposition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CVS_REVISION
public static final java.lang.String CVS_REVISION
QRLinSolver
public QRLinSolver(QRDecomposer decomposer)
- Initialize a new QRLinSolver with the given QRDecomposer.
- Parameters:
decomposer - The QRDecomposer to be used by this QRLinSolver.
- Specifications:
-
public behavior
requires decomposer != null;
ensures getDecomposer() == decomposer;
getDecomposer
public QRDecomposer getDecomposer()
- Return the QRDecomposer of this QRLinSolver.
solve
public Column solve(Matrix A,
Column b)
- see superclass
- Specifications inherited from overridden method in interface LinSolver:
-
public behavior
requires A != null;
requires b != null;
requires b.size() == A.getNbRows();
requires A.isSquare();
requires (* A is nonsingular *);
ensures (* A.times(\result).equals(b) *);