by default GenTensor is not used. Switch it on by defining USE_GENTENSOR