Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fluiddyn
transonic
Commits
1bab69484dc9
Commit
4c7077b8
authored
Oct 28, 2019
by
Pierre Augier
Browse files
Use const in example scikit-image/future/_greyreconstruct.py
parent
a81bf04595ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/for_dev/scikit-image/future/_greyreconstruct.py
View file @
1bab6948
...
...
@@ -11,10 +11,11 @@ Original author: Lee Kamentsky
"""
import
numpy
as
np
from
transonic
import
boost
,
Array
from
transonic
import
boost
,
Array
,
const
Au
=
Array
[
np
.
uint32
,
"1d"
,
"C"
,
"positive_indices"
]
A
=
Array
[
np
.
int32
,
"1d"
,
"C"
,
"positive_indices"
]
M
=
Array
[
np
.
int32
,
"1d"
,
"C"
,
"memview"
]
@
boost
(
boundscheck
=
False
)
...
...
@@ -22,7 +23,7 @@ def reconstruction_loop(
ranks
:
Au
,
prev
:
A
,
next
:
A
,
strides
:
A
,
strides
:
const
(
M
)
,
current_idx
:
np
.
intp
,
image_stride
:
np
.
intp
,
):
...
...
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