Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ift
NIFTy
Commits
4804882e
Commit
4804882e
authored
Jul 10, 2017
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix typos
parent
d6341dcb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
nifty/operators/laplace_operator/laplace_operator.py
nifty/operators/laplace_operator/laplace_operator.py
+1
-1
nifty/operators/smoothness_operator/smoothness_operator.py
nifty/operators/smoothness_operator/smoothness_operator.py
+2
-2
No files found.
nifty/operators/laplace_operator/laplace_operator.py
View file @
4804882e
...
...
@@ -42,7 +42,7 @@ class LaplaceOperator(EndomorphicOperator):
def
__init__
(
self
,
domain
,
default_spaces
=
None
,
logarithmic
=
True
):
super
(
LaplaceOperator
,
self
).
__init__
(
default_spaces
)
self
.
_domain
=
self
.
_parse_domain
(
domain
)
if
len
(
self
.
domain
)
!=
0
:
if
len
(
self
.
domain
)
!=
1
:
raise
ValueError
(
"The domain must contain exactly one PowerSpace."
)
if
not
isinstance
(
self
.
domain
[
0
],
PowerSpace
):
...
...
nifty/operators/smoothness_operator/smoothness_operator.py
View file @
4804882e
...
...
@@ -31,7 +31,7 @@ class SmoothnessOperator(EndomorphicOperator):
super
(
SmoothnessOperator
,
self
).
__init__
(
default_spaces
=
default_spaces
)
self
.
_domain
=
self
.
_parse_domain
(
domain
)
if
len
(
self
.
domain
)
!=
0
:
if
len
(
self
.
domain
)
!=
1
:
raise
ValueError
(
"The domain must contain exactly one PowerSpace."
)
if
not
isinstance
(
self
.
domain
[
0
],
PowerSpace
):
...
...
@@ -68,7 +68,7 @@ class SmoothnessOperator(EndomorphicOperator):
return
False
def
_times
(
self
,
x
,
spaces
):
res
=
self
.
_aplace
.
adjoint_times
(
self
.
_laplace
(
x
,
spaces
),
spaces
)
res
=
self
.
_
l
aplace
.
adjoint_times
(
self
.
_laplace
(
x
,
spaces
),
spaces
)
return
(
1.
/
self
.
sigma
)
**
2
*
res
# ---Added properties and methods---
...
...
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