Skip to content

Instantly share code, notes, and snippets.

@binary10
Created May 27, 2016 19:13
Show Gist options
  • Save binary10/ed0bfc481742d1da9b9747d48061f16c to your computer and use it in GitHub Desktop.
Save binary10/ed0bfc481742d1da9b9747d48061f16c to your computer and use it in GitHub Desktop.

Revisions

  1. binary10 created this gist May 27, 2016.
    4 changes: 4 additions & 0 deletions elimination-matrix.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    def elim(row, minus_row, scale, n=3):
    m = np.eye(n)
    m[row, minus_row] = -scale
    return m