Linear Algebra and the C Language/a04z

Determinant: Elementary operations

Elementary row operations are used in Gaussian elimination to reduce a matrix to row echelon form... Wikipedia: Elementary matrix


Swaps two lines:

Multiplies the row r by a scalar:

Multiplies r1 by s add sr1 at r2:


Swaps two columns:

Multiplies the column c by a scalar:

Multiplies c1 by s add sc1 at c2:


Select the best pivot:

Puts zero under the pivot:


Swaps two columns with the index:

Swaps two indexes without touching the columns: