Closed jmh530 closed 5 years ago
@9il Checks are passing. I still need to make this work for rectangular matrices, but I don't know if you want me to do that in a separate PR.
This PR is fine for rectangular changes
@9il Finally got around to getting it working for rectangular matrices. I had tried to get UTs that replicate exactly the qr() output from R, but it didn't match up exactly. The Q() and R() functions though produce the same results, so I think that's sufficient for now.
Addresses issue #17.
Adding functions to produce Q and R matrices as well as reconstruct the original matrix.
Note that this is only tested on square matrices. I could only get qrDecomp function to work on square matrices, which prevented me from testing further.