Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Holzer
pystencils
Commits
da69b887
Commit
da69b887
authored
Jan 21, 2022
by
Markus Holzer
Browse files
Implemented trigonometry functions good
parent
5c062c6b
Pipeline
#36960
failed with stages
in 3 minutes and 42 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pystencils_tests/test_math_functions.py
View file @
da69b887
...
...
@@ -63,4 +63,5 @@ def test_single_arguments(dtype, func, target):
dh
.
run_kernel
(
kernel
)
dh
.
all_to_cpu
()
np
.
testing
.
assert_allclose
(
dh
.
gather_array
(
"x"
)[
0
,
0
],
float
(
func
(
1.0
).
evalf
()))
np
.
testing
.
assert_allclose
(
dh
.
gather_array
(
"x"
)[
0
,
0
],
float
(
func
(
1.0
).
evalf
()),
rtol
=
10
**-
3
if
dtype
==
'float32'
else
10
**-
5
)
Write
Preview
Markdown
is supported
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