Created
July 18, 2014 15:39
-
-
Save kinoh/8f613b50b516da98f270 to your computer and use it in GitHub Desktop.
Gauß Elimination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A: {1..m} * {1..n} -> Field | |
for i in {1..m-1} | |
k = max(k => abs(A[k,i]), {i..m}) | |
A = swap(A, i, k) | |
for j in {i+1..m} | |
A[j] -= (A[j,1] / A[i,1]) * A[i] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment