1Checking empty matrices: 2LU matrix: 3Pivot vector: 4 5B matrix: 6Returned matrix: 7 8Checking 3x3 matrix: 9LU matrix: 107 8 9 110.285714 -0.285714 0.428571 120.142857 0.5 -0.5 13Pivot vector: 141 2 3 15B matrix: 161 171 181 19Returned matrix: 206 21-4 22-1 23 24Checking transpose and pivot: 25LU matrix: 269 3 1 270.888889 -0.666667 0.111111 280.777778 0.5 0.166667 29Pivot vector: 303 2 3 31B matrix: 321 331 341 35Returned matrix: 366 37-4 38-1 39 40Checking 2x3 matrix, expected to fail: 41LU matrix: 424 5 6 430.25 0.75 1.5 44Pivot vector: 452 2 46B matrix: 471 481 49 50Checking singular matrix, this gives random output, so we just check for memory problems. 51 52Checking wrong size of B matrix, should fail: 53LU matrix: 547 8 9 550.285714 -0.285714 0.428571 560.142857 0.5 -0.5 57Pivot vector: 581 2 3 59B matrix: 601 611 62 63Checking nonexisting pivots, should fail: 64LU matrix: 657 8 9 660.285714 -0.285714 0.428571 670.142857 0.5 -0.5 68Pivot vector: 695 6 7 70B matrix: 711 721 731 74 75Checking too few pivots, should fail: 76LU matrix: 777 8 9 780.285714 -0.285714 0.428571 790.142857 0.5 -0.5 80Pivot vector: 81 82B matrix: 831 841 851 86 87