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
e23497a9
Commit
e23497a9
authored
Mar 26, 2020
by
Matthijs
Browse files
3d compatibility sparsity
parent
c1cce5f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/ProxOperators/P_Sparsity.py
View file @
e23497a9
...
...
@@ -27,7 +27,7 @@ class P_Sparsity(ProxOperator):
else
:
self
.
support
=
1
if
self
.
sparsity_parameter
>
30
:
if
self
.
sparsity_parameter
>
30
or
len
(
config
[
'u0'
].
shape
)
!=
2
:
def
value_selection
(
original
,
indices
,
sparsity_parameter
):
idx_for_threshold
=
unravel_index
(
indices
[
-
sparsity_parameter
],
original
.
shape
)
threshold_val
=
abs
(
original
[
idx_for_threshold
].
get
())
...
...
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