C1W2_Assignment - Programming Assignment - Gaussian Elimination


What is wrong in my code?

GRADED FUNCTION: row_echelon_form

def row_echelon_form(A, B):
#code removed

Hi @renan_leme,

Please note that sharing your code directly is not allowed in this platform! Regarding your issue, the operations for row reduction have an error: M[j, j-1] should be M[j, row] when accessing elements below the pivot.

Make sure to correct this and verify your row reduction logic. If you still encounter issues, feel free to share more details for further assistance.

Hope it helps! Let me know if this resolves the problem.

1 Like


You’re welcome, happy to help :raised_hands: