devito
devito copied to clipboard
Cleanup interpolators and sparse functions
- If
LinearInterpolator._interpolate
/_inject
could acceptsfunction
as parameters, no state would be required in theLinearInterpolator
class and it could be singleton-ized (see https://github.com/devitocodes/devito/pull/1025#discussion_r358091918 ) - The initialization of
Interpolator
objects could be homogenised across theSparseFunction
hierarchy (see https://github.com/devitocodes/devito/pull/1025#discussion_r358092881 ) - Move
Evaluable
todevito/types/evaluable.py
(see https://github.com/devitocodes/devito/pull/1025#discussion_r363208996 )