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

to_complex() does not work as expected #20

Closed
wavepacket opened this issue Sep 27, 2017 · 1 comment
Closed

to_complex() does not work as expected #20

wavepacket opened this issue Sep 27, 2017 · 1 comment

Comments

@wavepacket
Copy link

In src/tensor/tensor_to_complex.cpp, line 40, the last iterator is not incremented properly ("+ii" instead of "++ii"), which causes the reconstructed complex tensor to be wrong.

Effectively, if you supply the two RTensors, you get a complex tensors with the correct real values, but whose imaginary values are all the first entry of the second tensors.

@juanjosegarciaripoll
Copy link
Owner

Fixed in master and cmake

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