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

Multiplying a complex tensor with a complex number gives zero #149

Open
APN-Pucky opened this issue Aug 17, 2021 · 1 comment
Open

Multiplying a complex tensor with a complex number gives zero #149

APN-Pucky opened this issue Aug 17, 2021 · 1 comment
Labels

Comments

@APN-Pucky
Copy link

Tensor<complex<double>,3,3> a = {{1,0,0},{0,0,0},{0,0,0}};
std::cout << a << std::endl << std::endl;
auto b = a*std::complex<double>(3,5);
std::cout << b << std::endl;

results in

[(1,0), (0,0), (0,0)]
[(0,0), (0,0), (0,0)]
[(0,0), (0,0), (0,0)]

[(0,0), (0,0), (0,0)]
[(0,0), (0,0), (0,0)]
[(0,0), (0,0), (0,0)]

which is unexpected. Multiplying a complex tensor with a double however works fine.

Possibly related to #146 .

@romeric romeric added the bug label Jan 1, 2022
@romeric
Copy link
Owner

romeric commented Jan 1, 2022

Will work on this ASAP. Thanks for reporting.

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

No branches or pull requests

2 participants