-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
ENH: numpy support? #3
Comments
@jankoslavic: I ran the same code with probably some indentation fixes and it ran without a glitch for me. The code I ran was: %%heat
def gauss(A, b):
Ab = np.column_stack((A, b))
for p, pivot_vrsta in enumerate(Ab[:-1]):
for vrsta in Ab[p + 1:]:
if pivot_vrsta[p]:
vrsta[p:] = vrsta[p:] - pivot_vrsta[p:] * vrsta[p] / pivot_vrsta[p]
else:
raise Exception('Division with 0.')
return Ab
import numpy as np
n = 40
gauss(np.random.random((n, n)),np.random.random(n)) I suspect something wrong with your setup. One easy way to verify is to create a |
@csurfer I have updated |
This is a great magic!!
I wonder why this code is not working:
The text was updated successfully, but these errors were encountered: