Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
def allclose(A, B, rtol=1e-05, atol=1e-08):
|
||||
if len(A) != len(B):
|
||||
return False
|
||||
|
||||
for x, y in zip(A, B):
|
||||
if abs(x-y) > atol + rtol * max(abs(x), abs(y)):
|
||||
return False
|
||||
return True
|
||||
Loading…
Add table
Add a link
Reference in a new issue