| DoubleQRLeastSqFactor(DoubleMatrix, Boolean, Double) Method |
Factors a given matrix so that it may be used to solve least squares problems.
The specified tolerance is used in computing the numerical rank of the matrix.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public void Factor(
DoubleMatrix A,
bool inPlace,
double tolerance
)
Public Sub Factor (
A As DoubleMatrix,
inPlace As Boolean,
tolerance As Double
)
public:
void Factor(
DoubleMatrix^ A,
bool inPlace,
double tolerance
)
member Factor :
A : DoubleMatrix *
inPlace : bool *
tolerance : float -> unit
Parameters
- A DoubleMatrix
- A matrix.
- inPlace Boolean
- If true, the QR decomposition will
overwrite the input matrix A. If false the input matrix
A will be preserved at the expense of making a copy of
A.
- tolerance Double
-
Tolerance for computing the numerical
rank of the matrix A. If A = QR is the
QR factorization of A, then elements on the main
diagonal of R are considered to be zero if their
absolute value is less than or equal to tolerance.
Remarks For the QR least squares method to succeed, the matrix
A must have full rank.
See Also