1.3.2 • Published 4 years ago

gauss-jordan v1.3.2

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Gauss Jordan

Usage

const input = [
  [3, 1, 4, 1],
  [5, 2, 6, 5],
  [0, 5, 2, 1],
];

const p = new PrimeField(modulus);
const m = new Matrix(input.length, input[0].length, p);

for (let i = 0; i < input.length; i++)
  for (let j = 0; j < input[i].length; j++) {
    m.set(i, j, input[i][j]);
  }

console.log(m.reducedRowEchelonForm());

/* expect: 
[
    [1, 0, 0, 4],
    [0, 1, 0, 3],
    [0, 0, 1, 0],
]
*/

Installation

node.js

yarn add gauss-jordan

unpkg

<script src="https://unpkg.com/gauss-jordan@1.2.2/dist/gauss-jordan.min.js"></script>
1.3.2

4 years ago

1.3.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago