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.
- Version:
- $Revision: 1.3 $
- Author:
- Marko van Dooren
Constructor Summary |
QRLinSolver(QRDecomposer decomposer)
public behavior
pre decomposer != null;
post getDecomposer() == decomposer;
Initialize a new QRLinSolver with the given QRDecomposer. |
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)
- public behavior
pre decomposer != null;
post getDecomposer() == decomposer;
Initialize a new QRLinSolver with the given QRDecomposer.
- Parameters:
decomposer
- The QRDecomposer to be used by this QRLinSolver.
getDecomposer
public QRDecomposer getDecomposer()
- Return the QRDecomposer of this QRLinSolver.
solve
public Column solve(Matrix A,
Column b)
- see superclass
- Specified by:
solve
in interface LinSolver
- Following copied from interface:
org.jutil.math.matrix.LinSolver
- Parameters:
A
- The matrix containing the coefficients of the equation.
Each row represents an equation. The i-th element of a row
represents the coefficient of the i-th variable in the equation
represented by that row.b
- The column representing the right-hand sides of the equation.
The right-handig side of the i-th row is the i-th element of the
Column