Skip to content

Instantly share code, notes, and snippets.

View jackkolb's full-sized avatar
💭
Wondering why GitHub added a status feature...

Jack Kolb jackkolb

💭
Wondering why GitHub added a status feature...
View GitHub Profile
@zhuowei
zhuowei / gaussian_elimination.py
Created October 25, 2013 04:28
Gaussian Elimination Algorithm
"""
Implementation of the Gaussian Elimination Algorithm for finding the row-reduced echelon form of a given matrix.
No pivoting is done.
Requires Python 3 due to the different behaviour of the division operation in earlier versions of Python.
Released under the Public Domain (if you want it - you probably don't)
"""
def like_a_gauss(mat):
"""
Changes mat into Reduced Row-Echelon Form.