Question: Problem 6 In your HW 2 . py file create a function called naive _ LU ( ) that takes the following arguments as input
Problem
In your
HWpy file create a function called naiveLU that takes the following arguments as input in this order:
numpy array : a matrix
And returns the following output:
numpy array : the lower triangular matrix of the decomposition for A ignore pivoting
numpy array : the upper triangular matrix of the LU decomposition for A
Hints: You will not receive credit if you just call any builtin function. Also have a check inside the function which verifies that is square before performing the decomposition.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
