{moderator edit: code removed}
I’m having issues with this piece of code as it doesn’t get me the expected output.
I tried to recheck and debug, but I can’t seem to figure it out.
And it’s a blocker for the next exercises, after checking the others and what they have as comments, It does look different from what I have, which I think Is the source of problem.
Test case “default_check”. Wrong output matrix. Check row reduction operations.
Expected:
[[ 1 2 -1 -1 3]
[ 0 1 4 3 22]
[ 0 0 1 3 7]
[ 0 0 0 1 1]]
Got:
[[ 2 4 -2 -2 6]
[ 0 -4 -16 -12 -88]
[ 72 224 240 144 1920]
[ -3 -11 -13 -7 -103]]
Test case “identity_matrix”. Wrong output matrix. Check row reduction operations.
Expected:
[[ 0 1 0 0 1]
[ 0 0 1 1 2]
[ 2 -1 1 -2 0]
[ 0 0 0 -1 0]]
Got:
[[ 0 2 0 0 2]
[ 0 0 -4 -4 -8]
[-16 80 72 96 232]
[ 0 -4 -3 -5 -12]]
2 Tests passed
2 Tests failed