HanchaiN c3003be560
Optimize functions (det) (#2516)
* Optimize `det`

Use Bareiss algorithm.
The performance is preserved but lessen the round-off errors.

* Optimize `det`

Use index mapping instead of swapping the rows directly.
Run the benchmark to compare the performance.

* Edit test file

Replace `approx.equal` with `assert.strictEqual`.
The test will fail with the previously implemented LU decomposition.

Co-authored-by: Glen Whitney <glen@studioinfinity.org>
2022-04-11 12:20:38 +02:00
..
2021-01-31 11:02:26 +01:00
2022-04-11 12:20:38 +02:00
2021-06-03 02:49:26 +02:00
2021-01-06 17:12:51 +01:00
2021-01-31 11:02:26 +01:00
2020-10-07 12:12:35 +02:00