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
6010c684
Commit
6010c684
authored
Nov 29, 2018
by
Philipp Arras
Browse files
Cleanup
parent
f97a9502
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/linear_interpolation.py
View file @
6010c684
...
...
@@ -18,15 +18,16 @@
from
__future__
import
absolute_import
,
division
,
print_function
from
..compat
import
*
from
numpy
import
(
abs
,
arange
,
array
,
int64
,
mgrid
,
prod
,
ravel
,
ravel_multi_index
,
zeros
)
from
scipy.sparse
import
coo_matrix
from
scipy.sparse.linalg
import
aslinearoperator
from
..
import
Field
,
UnstructuredDomain
from
..compat
import
*
from
..domains.unstructured_domain
import
UnstructuredDomain
from
..field
import
Field
from
..sugar
import
makeDomain
from
.linear_operator
import
LinearOperator
from
numpy
import
(
array
,
prod
,
mgrid
,
int64
,
arange
,
ravel_multi_index
,
zeros
,
abs
,
ravel
)
from
scipy.sparse
import
coo_matrix
from
scipy.sparse.linalg
import
aslinearoperator
class
LinearInterpolator
(
LinearOperator
):
...
...
@@ -35,11 +36,8 @@ class LinearInterpolator(LinearOperator):
:param domain:
RGSpace
:param target:
UnstructuredDomain, shape (ndata,)
:param positions:
positions at which to interpolate
Field with UnstructuredDomain, shape (dim, ndata)
positions at which to interpolate, shape (dim, ndata)
"""
self
.
_domain
=
makeDomain
(
domain
)
N_points
=
positions
.
shape
[
1
]
...
...
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