sisl / GridInterpolations.jl

Multidimensional grid interpolation in arbitrary dimensions
Other
52 stars 12 forks source link

complex conjugation when interpolating complex valued function #34

Open bkang119 opened 4 years ago

bkang119 commented 4 years ago

While I can interpolate complex valued functions, e.g., grid = RectangleGrid([0., 1., 2.]) gridData = [1.0im, 2.0im, 3.0im]

the interpolated function returns complex conjugated values: E.g., interpolate(grid,gridData, [0.0]) gives 0.0-1.0im instead of 1.0im

eschnett commented 2 years ago

The code uses dot to perform the actual interpolation. Switching the arguments to the call to dot would resolve this.