Commit c425bb7d authored by Gaetan D's avatar Gaetan D

hop

parent f9a5b148
......@@ -3,11 +3,12 @@ import numpy as np
import random
import time
def testinv():
sumnp = 0
sumlin = 0
sumnp = 0
sumlin = 0
for i in range(100):
for i in range(100):
n = 100
M = np.random.rand(n,n)
print("Iteration",i)
......@@ -21,7 +22,9 @@ for i in range(100):
invert(M)
b = time.clock()
sumlin += b-a
print(sumnp,sumlin)
print("=============")
print("Numpy :"sumnp)
print("Gauss :",sumlin)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment