29 #ifndef COM_DAFER45_TBTK_HA_LINKED_LIST
30 #define COM_DAFER45_TBTK_HA_LINKED_LIST
41 std::complex<double> amplitude;
49 HALinkedList(
const HoppingAmplitudeSet &as);
52 void addLinkedList(
int from);
53 HALink* getFirstMainLink();
54 HALink* getLinkArray();
55 int getLinkArraySize();
56 void rescaleAmplitudes(
double scaleFactor);
62 HALink *mainListFirst;
68 inline HALink* HALinkedList::getFirstMainLink(){
72 inline HALink* HALinkedList::getLinkArray(){
76 inline int HALinkedList::getLinkArraySize(){
80 inline void HALinkedList::rescaleAmplitudes(
double scaleFactor){
81 for(
int n = 0; n < linkArraySize; n++){
82 linkArray[n].amplitude /= scaleFactor;