GridInterpolations.jl icon indicating copy to clipboard operation
GridInterpolations.jl copied to clipboard

complex conjugation when interpolating complex valued function

Open bkang119 opened this issue 5 years ago • 1 comments

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

bkang119 avatar Aug 31 '20 09:08 bkang119

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

eschnett avatar Jan 20 '22 18:01 eschnett