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
8a83b8da
Commit
8a83b8da
authored
6 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Fixup for DomainTuples
parent
2ed23609
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nifty5/operators/linear_interpolation.py
+1
-2
1 addition, 2 deletions
nifty5/operators/linear_interpolation.py
with
1 addition
and
2 deletions
nifty5/operators/linear_interpolation.py
+
1
−
2
View file @
8a83b8da
...
@@ -37,7 +37,6 @@ class LinearInterpolator(LinearOperator):
...
@@ -37,7 +37,6 @@ class LinearInterpolator(LinearOperator):
Multilinear interpolation for points in an RGSpace
Multilinear interpolation for points in an RGSpace
:param domain:
:param domain:
RGSpace
:param positions:
:param positions:
positions at which to interpolate
positions at which to interpolate
Field with UnstructuredDomain, shape (dim, ndata)
Field with UnstructuredDomain, shape (dim, ndata)
...
@@ -66,7 +65,7 @@ class LinearInterpolator(LinearOperator):
...
@@ -66,7 +65,7 @@ class LinearInterpolator(LinearOperator):
pos
=
positions
/
dist
pos
=
positions
/
dist
excess
=
pos
-
pos
.
astype
(
int64
)
excess
=
pos
-
pos
.
astype
(
int64
)
pos
=
pos
.
astype
(
int64
)
pos
=
pos
.
astype
(
int64
)
max_index
=
array
(
self
.
domain
[
0
]
.
shape
).
reshape
(
(
-
1
,
)
+
(
1
,)
)
max_index
=
array
(
self
.
domain
.
shape
).
reshape
(
-
1
,
1
)
data
=
zeros
((
len
(
mg
[
0
]),
N_points
))
data
=
zeros
((
len
(
mg
[
0
]),
N_points
))
ii
=
zeros
((
len
(
mg
[
0
]),
N_points
),
dtype
=
int64
)
ii
=
zeros
((
len
(
mg
[
0
]),
N_points
),
dtype
=
int64
)
jj
=
zeros
((
len
(
mg
[
0
]),
N_points
),
dtype
=
int64
)
jj
=
zeros
((
len
(
mg
[
0
]),
N_points
),
dtype
=
int64
)
...
...
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