Learn R Programming

matrixmodp (version 0.2.0)

rref_p: Find the RREF of a matrix mod p

Description

rref_p() calculates the unique reduced-row echelon form of a matrix with entries in the finite field \(F_p\).

Usage

rref_p(A, p)

Value

A matrix of the same size as A which is the unique reduced-row echelon form of A.

Arguments

A

A matrix

p

A prime integer

Examples

Run this code
B <- matrix(c(3, 4, 1, 3, 2, 0), 2, 3)
rref_p(B, 5)
C <- matrix(c(0, 2, 0, 0, 0, 2, 0, 1, 1), 3, 3)
rref_p(C, 3)

Run the code above in your browser using DataLab