Skip to content
/ z2z Public

Matrix operations in Z/2Z. Pure go, no dependencies.

License

Notifications You must be signed in to change notification settings

xavier268/z2z

Repository files navigation

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.

About

Matrix operations in Z/2Z. Pure go, no dependencies.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages