Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
ab7c9479
Commit
ab7c9479
authored
Jul 02, 2017
by
Theo Steininger
Browse files
Fixed two .dot remnants.
parent
ccec27cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
demos/wiener_filter_hamiltonian.py
View file @
ab7c9479
...
...
@@ -24,7 +24,7 @@ class WienerFilterEnergy(Energy):
@
property
def
value
(
self
):
D_inv_x
=
self
.
D_inverse_x
()
H
=
0.5
*
D_inv_x
.
vdot
(
self
.
position
)
-
self
.
j
.
dot
(
self
.
position
)
H
=
0.5
*
D_inv_x
.
vdot
(
self
.
position
)
-
self
.
j
.
v
dot
(
self
.
position
)
return
H
.
real
@
property
...
...
nifty/field.py
View file @
ab7c9479
...
...
@@ -1100,7 +1100,7 @@ class Field(Loggable, Versionable, object):
The Lq-norm of the field values.
"""
return
np
.
sqrt
(
np
.
abs
(
self
.
dot
(
x
=
self
)))
return
np
.
sqrt
(
np
.
abs
(
self
.
v
dot
(
x
=
self
)))
def
conjugate
(
self
,
inplace
=
False
):
""" Retruns the complex conjugate of the field.
...
...
Write
Preview
Supports
Markdown
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