Skip to content

Latest commit

 

History

History
19 lines (11 loc) · 856 Bytes

README.md

File metadata and controls

19 lines (11 loc) · 856 Bytes

GoDoc reference example

z2z

Matrix operations in Z/2Z

Basic operations

Vectors are 1 x c Matrixes, for efficiency.

Multiplication is implemented by transposing one of the terms first, generating significant speed gains. Use MatMulTr to multiply by a vector.

Low level operations modify the matrix in place, high level operations generate a new matrix. See godoc for details.

Gauss-Jordan reduction

Inverse uses a Gauss-Jordan reduction to computes the inverse of a square matrix.

Gauss accepts any matrix, perfoms a Gauss-Jordan transformation, returning the decomposition with a left pseudo-inverse (or actual inverse if inversible), the rank, and the determinant (a flag to say the matrix in inversible or not). See Godoc for details.