Module linsys

Procs

proc findRowWithMaxInCol[N, M: static[int]](A: Matrix[N, M]; col: int): int
Finds the row with the single max value in the column col. Returns the index of the row.   Source Edit
proc swapRow[N, M: static[int]](A: var Matrix[N, M]; frm, to: int)
Swap row frm with row to   Source Edit
proc swapCol[N, M: static[int]](A: var Matrix[N, M]; frm, to: int)
Swap col frm with col to   Source Edit
proc subtractRows[N, M: static[int]](A: var Matrix[N, M]; fm, wht: int;
                                  tims: float = 1.0'f64)
Subtract row wht from row fm tims times   Source Edit
proc subtractCols[N, M: static[int]](A: var Matrix[N, M]; fm, wht: int;
                                  tims: float = 1.0'f64)
  Source Edit
proc ppge[N: static[int]](A: Matrix[N, N]; b: ColVector[N]): ColVector[N]
Solve the system Ax=b for x. Does not modify A. Uses Gaussian Elimination with partial pivoting Note: the implementation is pretty naive.   Source Edit