Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
khalid
Dadi
Commits
bf038e35
Commit
bf038e35
authored
Jul 23, 2020
by
Ryan Gutenkunst
Browse files
More roubust tridiagonal test
parent
71d5b100
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/test_Tridiagonal.py
View file @
bf038e35
...
...
@@ -32,7 +32,7 @@ class TridiagonalTestCase(unittest.TestCase):
u
=
dadi
.
tridiag
.
tridiag
(
self
.
a
,
self
.
b
,
self
.
c
,
self
.
r
)
rcheck
=
numpy
.
dot
(
self
.
arr
,
u
)
self
.
assert_
(
numpy
.
allclose
(
self
.
r
,
rcheck
,
atol
=
1e-
10
))
self
.
assert_
(
numpy
.
allclose
(
self
.
r
,
rcheck
,
atol
=
1e-
8
))
def
test_tridiag_single
(
self
):
"""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment