qr

Syntax: qr(matrix)

Description: Calculates the QR decomposition of matrix.

Group: matrix

Note: For an m-by-n matrix A with m >= n, the QR decomposition is an m-by-northogonal matrix Q and an n-by-n upper triangular matrix R so thatA = Q*R.The QR decompostion always exists, even if the matrix does not havefull rank, so the constructor will never fail. The primary use of theQR decomposition is in the least squares solution of nonsquare systemsof simultaneous linear equations. This will fail if isFullRank()returns false.

Example:

Also see: lu

Implemented in: LambdaQR.java