Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complex conjugation when interpolating complex valued function #34

Open
bkang119 opened this issue Aug 31, 2020 · 1 comment
Open

complex conjugation when interpolating complex valued function #34

bkang119 opened this issue Aug 31, 2020 · 1 comment

Comments

@bkang119
Copy link

bkang119 commented Aug 31, 2020

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants