Question: Provide a python code that does the following def QRrefpivot (A): #Replace this comment with code #-write a function to compute the QR decomposition of
def QRrefpivot (A): #Replace this comment with code #-write a function to compute the QR decomposition of an nxm matrix A using reflectors and #-assume n>m #-The function should work for any size matrix pivoting #-The function should work for matrices with real entries the output is 3 matrices of the decomposition Q,R,Qswap. Qswap implements the pivoting The decomposition is A-Q R Qswap #-use a tolerance of le-15 when checking to see if a value is 0 return (Q,R,Qswap)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
