-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
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
Jacobi Iteration Method #5113
Jacobi Iteration Method #5113
Conversation
Added this method in arithmetic_analysis folder. This method is used to solve system of linear equations.
Hi @cclauss, I've made the necessary changes for tests are failing. Please review it again |
Hi @cclauss, made changes as suggested. Please review |
My bad, it's done @cclauss |
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
a53a48c
to
e9c9f36
Compare
Hi @cclauss, the recent commit seems to be passing the workflows from my forked repo, do look into it. |
Hi @cclauss, all the bot checks have passed, could you have a look into this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your pull request!🤩
is_diagonally_dominant = True | ||
|
||
for i in range(0, rows): | ||
sum = 0 | ||
for j in range(0, cols - 1): | ||
if i == j: | ||
continue | ||
else: | ||
sum += table[i][j] | ||
|
||
if table[i][i] <= sum: | ||
raise ValueError("Coefficient matrix is not strictly diagonally dominant") | ||
|
||
return is_diagonally_dominant |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can throw in jacobi_iteration_method
and always return a boolean here.
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}
.