__construct() __construct(\matrix $A) : \Structure QR Decomposition computed by Householder reflections. Parameters \matrix $A Rectangular matrix Returns \Structure — to access R and the Householder vectors and compute Q.
isFullRank() isFullRank() : boolean Is the matrix full rank? Returns boolean — true if R, and hence A, has full rank, else false.
getH() getH() : \Matrix Return the Householder vectors Returns \Matrix — Lower trapezoidal matrix whose columns define the reflections
getQ() getQ() : \Matrix Generate and return the (economy-sized) orthogonal factor Returns \Matrix — orthogonal factor
solve() solve(\Matrix $B) : \Matrix Least squares solution of A*X = B Parameters \Matrix $B A Matrix with as many rows as A and any number of columns. Returns \Matrix — Matrix that minimizes the two norm of QRX-B.