CheMPS2
CheMPS2::Special Class Reference

#include <Special.h>

Static Public Member Functions

static int phase (const int power_times_two)
 Phase function. More...
 
static void invert_triangle_two (const int global, int *result)
 Triangle function for two variables. More...
 
static void invert_lower_triangle_two (const int global, int *result)
 LOWER triangle function for two variables. More...
 
static void invert_triangle_three (const int global, int *result)
 Triangle function for three variables. More...
 

Detailed Description

Special class.

Author
Sebastian Wouters sebas.nosp@m.tian.nosp@m.woute.nosp@m.rs@g.nosp@m.mail..nosp@m.com
Date
April 7, 2016

The special class contains static special functions used at various places throughout the code.

Definition at line 29 of file Special.h.

Member Function Documentation

static void CheMPS2::Special::invert_lower_triangle_two ( const int  global,
int *  result 
)
inlinestatic

LOWER triangle function for two variables.

Parameters
globalThe lower triangle counter global = i + ( j * ( j - 1 ) ) / 2 with i < j
resultInteger array of size 2 where to store i < j

Definition at line 53 of file Special.h.

+ Here is the caller graph for this function:

static void CheMPS2::Special::invert_triangle_three ( const int  global,
int *  result 
)
inlinestatic

Triangle function for three variables.

Parameters
globalThe triangle counter global = i + ( j * ( j + 1 ) ) / 2 + ( k * ( k + 1 ) * ( k + 2 ) ) / 6 with i <= j <= k
resultInteger array of size 3 where to store i <= j <= k

Definition at line 65 of file Special.h.

+ Here is the caller graph for this function:

static void CheMPS2::Special::invert_triangle_two ( const int  global,
int *  result 
)
inlinestatic

Triangle function for two variables.

Parameters
globalThe triangle counter global = i + ( j * ( j + 1 ) ) / 2 with i <= j
resultInteger array of size 2 where to store i <= j

Definition at line 41 of file Special.h.

+ Here is the caller graph for this function:

static int CheMPS2::Special::phase ( const int  power_times_two)
inlinestatic

Phase function.

Parameters
power_times_twoTwo times the power of the phase (-1)^{ power }
Returns
The phase (-1)^{ power_times_two / 2 }

Definition at line 36 of file Special.h.

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: