SOSpin is hosted by Hepforge, IPPP Durham
SOSpin  1.0.0
dlist.cpp File Reference

Defintions for all general (initialisation etc.) routines of class DList. More...

#include "dlist.h"
#include "son.h"
#include "index.h"

Go to the source code of this file.

Namespaces

 sospin
 

Functions

DList * sospin::copy (DList *L)
 Creates and returns a pointer to a new copy of a DList. More...
 
DList sospin::contract_deltas (DList &L, bool braketmode)
 Applies the following identity:

\begin{eqnarray*} b_i * b^\dagger_j = \delta_{i,j} - b^\dagger_j * b_i \end{eqnarray*}

input DList L keeps delta term and function returns the swapped term. More...

  DList sospin::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:

\begin{eqnarray*} b^\dagger_j * b_i = \delta_{i,j} - b_i * b^\dagger_j \end{eqnarray*}

input DList L keeps delta term and function returns the swapped term. More...

  string sospin::printDeltas (DList &L)  Creates and returns a string with the deltas and constants of a DList. More...
  DList & sospin::operator* (DList &L, elemType j)  Adds element "j" to the end of DList. Returns pointer to DList. More...
  DList sospin::operator* (const DList &O, const DList &P)  Creates and returns new DList that joins two DLists by order of parameters. More...
  DList & sospin::operator- (DList &L, elemType j)  Negates the sign of a DList and add the elemtype "j" at end of it. More...
  DList & sospin::operator, (DList &L, elemType j)  Adds element "j" to the end of DList. Returns pointer to DList. More...
  ostream & sospin::operator<< (ostream &out, DList &L)  Sends to output stream ostream a string with the corresponding expression of the DList. More...
  ostream & sospin::operator<< (ostream &out, DList *L)  Sends to output stream ostream a string with the corresponding expression of the DList. More...
  DList & sospin::operator<< (DList &L, elemType j)  Adds element "j" to the end of DList. Returns pointer to DList. More...
  DList & sospin::operator<< (DList &L, DList &M)  Copies DList. Creates and returns a new DList with nodes of both DLists. Sign is the product of both products. More...
  bool sospin::operator== (DList &L, DList &M)  Returns true if two DLists are equal. More...
 

Detailed Description

Defintions for all general (initialisation etc.) routines of class DList.

Definition in file dlist.cpp.