RowEchelon

The RowEchelon package is an implementation of a reduced row echelon algorithm.


Installation

Try:

julia> using Pkg

julia> Pkg.add("RowEchelon")
  Installing known registries into `~/.julia`
       Added `General` registry to ~/.julia/registries
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed RowEchelon ─ v0.2.1
    Updating `~/.julia/environments/v1.12/Project.toml`
  [af85af4c] + RowEchelon v0.2.1
    Updating `~/.julia/environments/v1.12/Manifest.toml`
  [af85af4c] + RowEchelon v0.2.1
  [56f22d72] + Artifacts v1.11.0
  [8f399da3] + Libdl v1.11.0
  [37e2e46d] + LinearAlgebra v1.12.0
  [e66e0078] + CompilerSupportLibraries_jll v1.3.0+1
  [4536629a] + OpenBLAS_jll v0.3.29+0
  [8e850b90] + libblastrampoline_jll v5.15.0+0
Precompiling packages finished.
  1 dependency successfully precompiled in 1 seconds


Example

julia> using RowEchelon

julia> A = [1 2 1 2; 3 8 1 12; 0 4 1 2]
3×4 Matrix{Int64}:
 1  2  1   2
 3  8  1  12
 0  4  1   2

julia> B = rref(A)
3×4 Matrix{Float64}:
 1.0  0.0  0.0   2.0
 0.0  1.0  0.0   1.0
 0.0  0.0  1.0  -2.0

To get exact values, try casting A to Rational. A simple trick to do this is:

A = [1//1 2 1 2; 3 8 1 12; 0 4 1 2]


CategoryRicottone

Julia/RowEchelon (last edited 2026-01-19 19:39:49 by DominicRicottone)