Marcel-Rodekamp / NSL

Nanosystem Simulation Library (NSL) implements statistical simulations for systems on the nanoscale
Other
2 stars 0 forks source link

Feature/fermion matrix exp shift #76

Closed keshvituteja closed 2 years ago

keshvituteja commented 2 years ago

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

Marcel-Rodekamp commented 2 years ago

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?