Fastor
Fastor copied to clipboard
all or fseq gives wrong ordered complex vector?
Tensor<complex<double>,3,3> a = {{1,0,0},{0,0,0},{0,0,0}};
Tensor<complex<double>,3> b = a(fseq<0,3>(),0);
std::cout << b << std::endl;
gives
[(0,0)]
[(1,0)]
[(0,0)]
which I find very confusing, since I'd expect the 1 to be at the beginning.
Probably related to #121 .
If I use int or double instead of complex<double> the ordering is correct.
One workaround is b=einsum<...>(unit_vector,a).
Most likely a bug. I will take a look ASAP. Thanks for reporting.
Any progress?