Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
57ef1b82
There was a problem fetching the pipeline summary.
Commit
57ef1b82
authored
7 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Patches
Plain Diff
fixes
parent
e0b78c13
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
nifty/field.py
+1
-1
1 addition, 1 deletion
nifty/field.py
nifty/operators/diagonal_operator.py
+1
-1
1 addition, 1 deletion
nifty/operators/diagonal_operator.py
nifty/operators/laplace_operator.py
+0
-1
0 additions, 1 deletion
nifty/operators/laplace_operator.py
with
2 additions
and
3 deletions
nifty/field.py
+
1
−
1
View file @
57ef1b82
...
@@ -315,7 +315,7 @@ class Field(object):
...
@@ -315,7 +315,7 @@ class Field(object):
wgt
=
wgt
.
reshape
(
new_shape
)
wgt
=
wgt
.
reshape
(
new_shape
)
# FIXME only temporary
# FIXME only temporary
if
ind
==
0
:
if
ind
==
0
:
wgt
=
dobj
.
local_data
(
dobj
.
from_global_data
(
wgt
,
distaxis
=
0
))
wgt
=
dobj
.
local_data
(
dobj
.
from_global_data
(
wgt
))
out
*=
wgt
**
power
out
*=
wgt
**
power
fct
=
fct
**
power
fct
=
fct
**
power
if
fct
!=
1.
:
if
fct
!=
1.
:
...
...
This diff is collapsed.
Click to expand it.
nifty/operators/diagonal_operator.py
+
1
−
1
View file @
57ef1b82
...
@@ -154,5 +154,5 @@ class DiagonalOperator(EndomorphicOperator):
...
@@ -154,5 +154,5 @@ class DiagonalOperator(EndomorphicOperator):
reshaped_local_diagonal
=
np
.
reshape
(
dobj
.
to_global_data
(
diag
.
val
),
self
.
_reshaper
)
reshaped_local_diagonal
=
np
.
reshape
(
dobj
.
to_global_data
(
diag
.
val
),
self
.
_reshaper
)
if
0
in
self
.
_spaces
:
if
0
in
self
.
_spaces
:
reshaped_local_diagonal
=
dobj
.
local_data
(
dobj
.
from_global_data
(
reshaped_local_diagonal
,
distaxis
=
0
))
reshaped_local_diagonal
=
dobj
.
local_data
(
dobj
.
from_global_data
(
reshaped_local_diagonal
))
return
Field
(
x
.
domain
,
val
=
x
.
val
*
reshaped_local_diagonal
)
return
Field
(
x
.
domain
,
val
=
x
.
val
*
reshaped_local_diagonal
)
This diff is collapsed.
Click to expand it.
nifty/operators/laplace_operator.py
+
0
−
1
View file @
57ef1b82
...
@@ -89,7 +89,6 @@ class LaplaceOperator(EndomorphicOperator):
...
@@ -89,7 +89,6 @@ class LaplaceOperator(EndomorphicOperator):
return
self
.
_logarithmic
return
self
.
_logarithmic
def
_times
(
self
,
x
):
def
_times
(
self
,
x
):
val
=
dobj
.
to_global_data
(
x
.
val
)
axes
=
x
.
domain
.
axes
[
self
.
_space
]
axes
=
x
.
domain
.
axes
[
self
.
_space
]
axis
=
axes
[
0
]
axis
=
axes
[
0
]
locval
=
x
.
val
locval
=
x
.
val
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment