Hi @Anoop_Mathur,
Thank you for posting!
Could you please check again the arguments when calling the functions ‘AddRows’, ‘SwapRows’ and ‘MultiplyRow’?

Hi Degeye,
The parameters are correct, because code is giving me expected solution and unit tests are also passed
Original matrix:
[[ 1. -2. 3. -4.]
[-5. 6. -7. 8.]
[-4. 3. -2. 1.]
[ 8. -7. 6. -5.]]

Original matrix after its third row is multiplied by -2:
[[ 1. -2. 3. -4.]
[-5. 6. -7. 8.]
[ 8. -6. 4. -2.]
[ 8. -7. 6. -5.]]

Original matrix after exchange of the third row with the sum of itself and first row multiplied by 4:
[[ 1. -2. 3. -4.]
[ -5. 6. -7. 8.]
[ 0. -5. 10. -15.]
[ 8. -7. 6. -5.]]

Original matrix after exchange of its first and third rows:
[[-4. 3. -2. 1.]
[-5. 6. -7. 8.]
[ 1. -2. 3. -4.]
[ 8. -7. 6. -5.]]
Expected Output
Original matrix:
[[ 1 -2 3 -4]
[-5 6 -7 8]
[-4 3 -2 1]
[ 8 -7 6 -5]]

Original matrix after its third row is multiplied by -2:
[[ 1 -2 3 -4]
[-5 6 -7 8]
[ 8 -6 4 -2]
[ 8 -7 6 -5]]

Original matrix after exchange of the third row with the sum of itself and first row multiplied by 4:
[[ 1 -2 3 -4]
[ -5 6 -7 8]
[ 0 -5 10 -15]
[ 8 -7 6 -5]]

Original matrix after exchange of its first and third rows:
[[-4 3 -2 1]
[-5 6 -7 8]
[ 1 -2 3 -4]
[ 8 -7 6 -5]]

Test your solution

w2_unittest.test_elementary_operations(MultiplyRow, AddRows, SwapRows)
All tests passed

Hi @Anoop_Mathur,
Please, may you check again the code inside your helper functions (MultiplyRow, AddRows, SwapRows)?
Have a nice day!
Regards,
Stephane