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
b8068182
Commit
b8068182
authored
Apr 06, 2017
by
alexander.dornheim
Browse files
Changed output in compare_to_matlab in phase.py
parent
0b68c71d
Changes
1
Hide whitespace changes
Inline
Side-by-side
proxtoolbox/Problems/Phase/phase.py
View file @
b8068182
...
...
@@ -252,9 +252,9 @@ class Phase(Problem):
nonz
=
nonzero
(
u1
)
diff
=
u1
-
self
.
output
[
'u1'
]
print
(
diff
[
nonz
])
print
(
"Maximum
of absolute value
of difference:"
)
print
(
"Maximum
norm
of difference:"
)
print
(
np
.
amax
(
abs
(
diff
)));
print
(
"Frobenius of difference:"
)
print
(
"Frobenius
norm
of difference:"
)
print
(
norm
(
diff
))
print
(
"Frobenius norm of matlab u1:"
)
print
(
norm
(
u1
))
...
...
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