-
Notifications
You must be signed in to change notification settings - Fork 1
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
Role of xk
and xkp1
in jacobi_step
#59
Comments
@ anders34 You need not store all the values of the gradient algorithm iterates, so you should not need an array/list. You can just use two variables xk and xkp1 for the current and next guess respectively, these will get rewritten every time |
I'm talking about |
Never mind! I figured out a way to do it! |
Reopened since another student might find this discussion useful. |
For Exercise 3, for
jacobi_step
, when we make ourxkp1
array, since it has to be a numpy array and you said that the things you've already imported should be enough, that makes me think we should use the array function to make it. But we don't know what goes in the array yet, so we can't do that. So then I tried just settingxkp1
equal toxk
and changing it later, butxk
holds ints and I needxkp1
to hold floats and I don't know how to change it. So I don't know if the issue is with creating the array, or if it's about changing an array of ints to an array of floats.The text was updated successfully, but these errors were encountered: