solveQR
Solves a linear system Ax = b using QR decomposition.
Given the QR decomposition of matrix A (where A = QR), this function solves the system Ax = b by first computing y = Q^T * b, and then solving Rx = y using backward substitution.
Return
The solution vector/matrix x.
Parameters
qr
A Pair of sparse matrices (Q, R) representing the QR decomposition of matrix A.
b
The right-hand side vector/matrix of the system.
Throws
If the dimensions of the matrices are incompatible.