org.jquantlib.math.matrixutilities
Class QRDecomposition
- java.lang.Object
-
- org.jquantlib.math.matrixutilities.QRDecomposition
-
public class QRDecomposition extends java.lang.ObjectQR decompoisitionThis implementation is based on MINPACK/J
This subroutine uses householder transformations with optional column pivoting to compute a QR factorization of the by matrix .
That is, Minpack_f77#qrfac determines an orthogonal matrix , a permutation matrix , and an upper trapezoidal matrix with diagonal elements of nonincreasing magnitude, such that .
Return value
ipvtis an integer array of length , which defines the permutation matrix such that .Column of is column
ipvt[j]of the identity matrix.See lmdiff.cpp for further details.
-
-
Constructor Summary
Constructors Constructor and Description QRDecomposition(Matrix matrix)Calculates the QR-decomposition of the given matrix.QRDecomposition(Matrix A, boolean pivot)Calculates the QR-decomposition of the given matrix.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanisNonSingular()MatrixP()MatrixQ()MatrixR()Arraysolve(Array b, boolean pivot, Array d)
-
-
-
Constructor Detail
-
QRDecomposition
public QRDecomposition(Matrix matrix)
Calculates the QR-decomposition of the given matrix.- Parameters:
A- The matrix to decompose.
-
QRDecomposition
public QRDecomposition(Matrix A, boolean pivot)
Calculates the QR-decomposition of the given matrix.- Parameters:
M- The matrix to decompose.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG