Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed Pivot to Use Max #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

waylonflinn
Copy link

I changed the pivot method used by the gauss-jordan method to look for a maximum value in a column instead of a minimum. This is the pivot choice described in:
NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)

This method produces much better results on my test data (previous method was accurate to one decimal place, this method is accurate to eight).
Comparisons were made to the algorithm implemented in numpy.linalg.solve
from numpy version 1.7.1
Test data included values ranging from 100 to 0.0001 in a single matrix

new code uses maximum instead of minimum. based on code and discussion in
NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5)
@thegrb93
Copy link

thegrb93 commented Oct 8, 2019

I wish I saw this earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants