Problem with Exercise 1 in Programming Assignment C1W2 - Gaussian Elimination

Hi @kvw

The below code mentions you to use pivot_row, but you have used M[j]

Perform row reduction using the formula:
row_to_reduce → row_to_reduce - value_below_pivot * pivot_row

Also as pointed by @paulinpaloalto
for value below point, you are suppose to use the below code recall to calculate the value below point which in your case seems to be missing.
Update the column index to agree with the new pivot position

You were also suppose to create a column index for pivot candidate which you didn’t create as the reason might be using an obsolete copy!!

So I suggest you to get a fresh copy and re-do the assignment as I suspect
PART 2 - NOT GRADED. This part deals with the case where the pivot isn’t in the main diagonal.
The above part is part of exercise 1 and I do not see in your codes as per the codes I could.

refer the below link 1a, on to get a fresh copy of your assignment

Regards
DP

1 Like