ai.dragonfly.math.matrix.decomposition.QR
See theQR companion object
QR Decomposition, computed by Householder reflections. Structure to access R and the Householder vectors and compute Q.
Value parameters
- A
-
Rectangular matrix
Attributes
Members list
Value members
Concrete methods
Return the Householder vectors
Return the Householder vectors
Attributes
- Returns
-
Lower trapezoidal matrix whose columns define the reflections
- Source
- QR.scala
Generate and return the (economy-sized) orthogonal factor
Return the upper triangular factor
Is the matrix full rank?
Least squares solution of A*X = B
Least squares solution of A*X = B
Value parameters
- b
-
A Matrix with as many rows as A and any number of columns.
Attributes
- Returns
-
X that minimizes the two norm of QRX-B.
- Throws
-
IllegalArgumentException
Matrix row dimensions must agree.
RuntimeExceptionMatrix is rank deficient.
- Source
- QR.scala
In this article