Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tom Harke
pystencils
Commits
ef12c745
Commit
ef12c745
authored
Oct 21, 2019
by
Martin Bauer
Browse files
Merge branch 'philox' into 'master'
correctly print RNG nodes See merge request
pycodegen/pystencils!78
parents
86f08297
ae54e48c
Changes
1
Hide whitespace changes
Inline
Side-by-side
pystencils/rng.py
View file @
ef12c745
...
...
@@ -70,7 +70,8 @@ class RNGBase(CustomCodeNode):
self
.
_time_step
,
self
.
_offsets
,
self
.
keys
,
self
.
_dim
,
self
.
result_symbols
)
def
__repr__
(
self
):
return
(
", "
.
join
([
'{}'
]
*
self
.
_num_vars
)
+
" <- {}RNG"
).
format
(
*
self
.
result_symbols
,
self
.
_name
.
capitalize
())
return
(
", "
.
join
([
'{}'
]
*
self
.
_num_vars
)
+
"
\\
leftarrow {}RNG"
).
format
(
*
self
.
result_symbols
,
self
.
_name
.
capitalize
())
class
PhiloxTwoDoubles
(
RNGBase
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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