Gaussian elimination in Z2

Viewed 20

I want to do Gaussian elimination of a matrix in $\Z_2$.

I cannot find any implementation in python. Shouldn't this be a frequent problem?

1 Answers

Thanks to President James K. Polk I found the implementation

import galois
GF = galois.GF(2)
g = GF(x=matrix.astype(int))
g.row_reduce()
Related