numerical/qr_decomposition library

QR decomposition using Householder reflections.

Produces Q (orthogonal) and R (upper-triangular) matrices for a given dense matrix. This implementation favours numerical stability and is suitable for solving least-squares problems and matrix factorizations.

Example:

final A = [[12.0,-51.0,4.0],[6.0,167.0,-68.0],[-4.0,24.0,-41.0]];
final res = qrDecomposition(A);