rowreduction

package
v0.0.0-...-846829c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package rowreduction provides a Guassian Elimination function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GaussianElimination

func GaussianElimination(input [][]float64) [][]float64

GaussianElimination applies Guassian elimination onto the provided matrix. The code expects the input to be a augmented matrix(a m*n matrix whereby n=m+1).

Gaussian elimination will be applied trough iteration of the matrix rows, each iteration will: - Swap current row with row that has the highest pivot(input[x][i], whereby i is the iteration idx and x = 0...amount_rows), this can be the same row. - Iterate trough all the rows that are below the pivot row and reduce all factors that are in those rows by the delta.

The result matrix will be row echelon form.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL