Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
nam
ProxPython
Commits
b39cab08
Commit
b39cab08
authored
Aug 12, 2016
by
Stefan
Browse files
Added new blocking scheme "split"
parent
9123db70
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/ptychography.py
View file @
b39cab08
...
...
@@ -2040,6 +2040,8 @@ class Ptychography(Problem):
placed
[
p
]
=
True
;
elif
blocking_scheme
==
'distribute'
:
in_block
=
numpy
.
arange
(
N_pie
)
%
(
rows
*
cols
);
elif
blocking_scheme
==
'split'
:
in_block
=
numpy
.
arange
(
N_pie
)
//
(
N_pie
//
(
rows
*
cols
));
else
:
raise
NotImplementedError
(
'NYI'
)
self
.
config
[
'in_block'
]
=
in_block
;
...
...
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