dlist.cpp
Go to the documentation of this file.
382 void DList::getBandBdaggerIds(bool &BandBdagger, vector<string> &id0, vector<string> &id1, int &sign){
unsigned int getType() Returns the type of the element. Ex.: $b$ - type=0; $b^{}$ - type=1; $$ - type=2; constant - type=3... Definition: dlist.h:111 bool checkDeltaIndex() Checks the indexes of $$ elements. They must be less or equal to the n of SO(2n). Checks also if the ... Definition: dlist.cpp:590 void getBandBdaggerAndDeltasIds(vector< string > &id0, vector< string > &id1, vector< string > &id2, vector< string > &id3, int &sign) Updates integer vector sequence containers "id0" and "id1" with ids (data fields) of $b$'s and $b^$'s... Definition: dlist.cpp:437 OPMode operator-(const OPMode a, const OPMode b) calculate the mode for the subtraction Definition: braket.cpp:291 void getBandBdaggerIds(bool &BandBdagger, vector< string > &id0, vector< string > &id1, int &sign) Updates integer vector sequence containers "id0" and "id1" with ids (data fields) of $b$'s and $b^$'s... Definition: dlist.cpp:382 void add(elemType) Adds one node at the end of DList (scans the list). Updates actual pointer to be the last node... Definition: dlist.cpp:154 Functions and cointainer for indices. bool search_elem(unsigned int type1) Searches for the element with "data.get\_type()==type" found in DList. Returns true if the element is... Definition: dlist.cpp:553 OPMode operator*(const OPMode a, const OPMode b) calculate the mode for the multiplication Definition: braket.cpp:317 DList & operator,(DList &L, elemType j) Adds element "j" to the end of DList. Returns pointer to DList. Definition: dlist.cpp:1055 bool check_num() Verifies if the number of $b$'s and $b^$'s is less or equal than N of SO(2N). Returns true if so... Definition: dlist.cpp:631 DList * copy(DList *L) Creates and returns a pointer to a new copy of a DList. Definition: dlist.cpp:806 void remove(unsigned int type) Removes the first element with "data.get\_type()==type" found in DList. Updates actual pointer to be ... Definition: dlist.cpp:286 DList rearrange() Creates and returns a new DList by copying nodes in DList ordered by type. The nodes that first appea... Definition: dlist.cpp:263 Defintions for all general (initialisation etc.) routines of class DList. bool check_same_num() Verifies if the number of $b$'s and $b^$'s match. Returns true if they match, false otherwise... Definition: dlist.cpp:648 Definition: braket.cpp:54 DList ordering(DList &L, bool braketmode) Order only the b's (to the left hand side) and b's (to the right hand side) terms. Applies the following identity: input DList L keeps delta term and function returns the swapped term. Definition: dlist.cpp:911 void add_end(elemType) Adds one node in the end of DList. Updates actual pointer to be the last node. Definition: dlist.cpp:206 string printDeltas(DList &L) Creates and returns a string with the deltas and constants of a DList. Definition: dlist.cpp:975 void remove_actual() Removes the element for which the actual pointer, "actual", is pointing at in DList. Definition: dlist.cpp:313 DList contract_deltas(DList &L, bool braketmode) Applies the following identity: input DList L keeps delta term and function returns the swapped term... Definition: dlist.cpp:845 vector< int > getIds() Creates and returns an integer vector sequence container with the ids (data fields) of $b$'s and $b^$... Definition: dlist.cpp:361 Definition: dlist.h:101 Main Sospin header file. Includes C++ macros, to simplify expression writing, B operator, Verbosity level and memory usage. ostream & operator<<(ostream &out, const OPMode &a) Get the mode of the expression. Definition: braket.cpp:266 bool hasRepeatedIndex() Returns true if there is elements with the same id (data fields) in the DList (repeated ids)... Definition: dlist.cpp:703 bool search_last(unsigned int type1) Search the last element with "data.get\_type()==type1" found in DList. Returns true a node was found... Definition: dlist.cpp:499 static elemType make_elem(int type, int data) Creates and return an element of type "type" and one data field "data". Second data field is set to z... Definition: dlist.h:142 void add_begin(elemType) Adds one node in the beginning of DList. Updates actual pointer to be the new first node... Definition: dlist.cpp:181 bool hasNoDeltas() Returns true if there is no elements of type $$ in DList. Definition: dlist.cpp:666 bool check() Verifies if the number of $b$'s and $b^$'s matches and if each one is less or equal than N of SO(2N)... Definition: dlist.cpp:570 void getDeltaIds(bool &AllDeltas, vector< string > &id0, vector< string > &id1, int &sign) Updates integer vector sequence containers "id0" and "id1" with first and second ids (data fields) of... Definition: dlist.cpp:405 void join(DList &L) Joins a DList to the end of the current DList (this). Updates "actual" pointer to be the end of the f... Definition: dlist.cpp:232 bool search_first(unsigned int type1) Search the first element with "data.get\_type()==type" found in DList. Returns true if the symbol is ... Definition: dlist.cpp:515 Generated on Fri Dec 18 2015 19:49:47 for SOSpin by ![]() |