ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Zq< Q > Class Template Reference

#include <zq.h>

Public Types

typedef ZqCharge< Q > charge
 
typedef int subcharge
 

Static Public Member Functions

static charge fuse (charge a, charge b)
 
template<int R>
static charge fuse (const boost::array< charge, R > &v)
 

Static Public Attributes

static const charge IdentityCharge = ZqCharge<Q>(0)
 
static const bool finite = true
 
static const int q = Q
 

Detailed Description

template<int Q>
class Zq< Q >

Definition at line 94 of file zq.h.

Member Typedef Documentation

template<int Q>
typedef ZqCharge<Q> Zq< Q >::charge

Definition at line 97 of file zq.h.

template<int Q>
typedef int Zq< Q >::subcharge

Definition at line 98 of file zq.h.

Member Function Documentation

template<int Q>
static charge Zq< Q >::fuse ( charge  a,
charge  b 
)
inlinestatic

Definition at line 105 of file zq.h.

106  {
107  return a+b;
108  }
template<int Q>
template<int R>
static charge Zq< Q >::fuse ( const boost::array< charge, R > &  v)
inlinestatic

Definition at line 110 of file zq.h.

111  {
112  charge ret = v[0];
113  for (int i = 1; i < R; i++)
114  ret = fuse(ret, v[i]);
115  return ret;
116  }
static charge fuse(charge a, charge b)
Definition: zq.h:105
ZqCharge< Q > charge
Definition: zq.h:97

Member Data Documentation

template<int Q>
const bool Zq< Q >::finite = true
static

Definition at line 101 of file zq.h.

template<int Q>
const Zq< Q >::charge Zq< Q >::IdentityCharge = ZqCharge<Q>(0)
static

Definition at line 100 of file zq.h.

template<int Q>
const int Zq< Q >::q = Q
static

Definition at line 103 of file zq.h.


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