SOSpin is hosted by Hepforge, IPPP Durham
SOSpin  1.0.0
son.h File Reference

Main Sospin header file. Includes C++ macros, to simplify expression writing, B operator, Verbosity level and memory usage. More...

#include "timer.h"
#include "index.h"
#include "dlist.h"
#include "braket.h"
#include "form.h"
#include "enum.h"

Go to the source code of this file.

Namespaces

 sospin
 

Macros

#define bb(a)   DList(0, newIdx(a))
 C++ Macro for DList b operator. More...
 
#define bbt(a)   DList(1, newIdx(a))
 C++ Macro for DList b\dagger operator. More...
 
#define b(a)   DList(0, newIdx(#a))
 C++ Macro for DList b operator. More...
 
#define bt(a)   DList(1, newIdx(#a))
 C++ Macro for DList b\dagger operator. More...
 
#define delta(a, b)   DList(2, newIdx(#a), newIdx(#b))
 C++ Macro for DList delta. More...
 
#define identity   DList(3, 0)
 C++ Macro for DList identity/one. More...
 
#define bra(i, a, b)   Braket(i,#a, b, bra)
 C++ Macro for bra expression. More...
 
#define ket(i, a, b)   Braket(i,#a, b, ket)
 C++ Macro for ket expression. More...
 
#define braket(i, a, b)   Braket(i,#a, b, braket)
 C++ Macro for braket expression. More...
 
#define free(i, a, b)   Braket(i,#a, b, none)
 C++ Macro for none expression. More...
 
#define Field(a, b, c, d)   FormField(#a, b, c, d)
 C++ Macro to declare field properties none expression. More...
 

Functions

void sospin::setDim (int n)
 Set the group dimension. More...
 
int sospin::getDim ()
 Get the group dimension. More...
 
bool sospin::GroupEven ()
 Return Group parity. More...
 
void sospin::CleanGlobalDecl ()
 Clean all indexes and function declarations. More...
 
void sospin::setVerbosity (Verbosity verb)
 Set verbosity level. More...
 
Verbosity sospin::getVerbosity ()
 Return current verbosity level. More...
 
ostream & sospin::operator<< (ostream &out, const Verbosity &a)
 Return current ostream verbosity level. More...
 
Braket sospin::Bop (std::string startid="i")
 
Braket sospin::BopIdnum ()
 Operator B, charge conjugation matrix for SO(2N) spinor representations. More...
 
size_t sospin::getCurrentRSS ()
 Gets current resident set size (RSS) - physical memory use. More...
 
size_t sospin::getPeakRSS ()
 Gets highest (peak) value so far for resident set size (RSS) - physical memory use. More...
 
void sospin::print_process_mem_usage ()
 Prints memory stats (current and peak resident set size) in MB. More...
 

Detailed Description

Main Sospin header file. Includes C++ macros, to simplify expression writing, B operator, Verbosity level and memory usage.

Definition in file son.h.

Macro Definition Documentation

#define b (   a)    DList(0, newIdx(#a))

C++ Macro for DList b operator.

Parameters
[in]ais the index without quotation marks

Definition at line 87 of file son.h.

#define bb (   a)    DList(0, newIdx(a))

C++ Macro for DList b operator.

Parameters
[in]ais the index in string format or enclosed in quotation marks

Definition at line 75 of file son.h.

#define bbt (   a)    DList(1, newIdx(a))

C++ Macro for DList b\dagger operator.

Parameters
[in]ais the index in string format or enclosed in quotation marks

Definition at line 81 of file son.h.

#define bra (   i,
  a,
  b 
)    Braket(i,#a, b, bra)

C++ Macro for bra expression.

Parameters
iindex sum
aconstant part without quotation marks
bDList expression

Definition at line 112 of file son.h.

#define braket (   i,
  a,
  b 
)    Braket(i,#a, b, braket)

C++ Macro for braket expression.

Parameters
iindex sum
aconstant part without quotation marks
bDList expression

Definition at line 126 of file son.h.

#define bt (   a)    DList(1, newIdx(#a))

C++ Macro for DList b\dagger operator.

Parameters
[in]ais the index without quotation marks

Definition at line 93 of file son.h.

#define delta (   a,
  b 
)    DList(2, newIdx(#a), newIdx(#b))

C++ Macro for DList delta.

Parameters
[in]ais the first delta index without quotation marks
[in]bis the second delta index without quotation marks

Definition at line 100 of file son.h.

#define Field (   a,
  b,
  c,
 
)    FormField(#a, b, c, d)

C++ Macro to declare field properties none expression.

Parameters
afield name without quotation marks
bnumber of upper indexes
cnumber of lower indexes
dfield with/without flavor index and symmetric/asymmetric field (SYM, ASYM, SYM_WITH_FLAVOR or ASYM_WITH_FLAVOR)
Returns
field name in string format

Definition at line 144 of file son.h.

#define free (   i,
  a,
  b 
)    Braket(i,#a, b, none)

C++ Macro for none expression.

Parameters
iindex sum
aconstant part without quotation marks
bDList expression

Definition at line 133 of file son.h.

#define identity   DList(3, 0)

C++ Macro for DList identity/one.

Definition at line 104 of file son.h.

#define ket (   i,
  a,
  b 
)    Braket(i,#a, b, ket)

C++ Macro for ket expression.

Parameters
iindex sum
aconstant part without quotation marks
bDList expression

Definition at line 119 of file son.h.