shift(1,0) on a matrix results in a shift in +1 direction in dim 0, whereas shift(0,1) on a matrix results in no shift (shift 0 in dim 1). Hence, replaced all the shift(0,x) (where x = +/- 1) with shift(x,0) in src/NSL/FermionMatrix/Impl/hubbardExp.tpp
and Tests/FermionMatrix/test_fermionMatrixHubbardExp.cpp
We have discussed this in the regular meeting, the changes are reasonable comparing NSL::Tensor::shift and compilation as well as tests work on my machine. @evanberkowitz or @luutom does it work for you?
shift(1,0)
on a matrix results in a shift in +1 direction in dim 0, whereasshift(0,1)
on a matrix results in no shift (shift 0 in dim 1). Hence, replaced all theshift(0,x)
(where x = +/- 1) withshift(x,0)
insrc/NSL/FermionMatrix/Impl/hubbardExp.tpp
andTests/FermionMatrix/test_fermionMatrixHubbardExp.cpp