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
NU1_template< N, S > Class Template Reference

#include <nu1_tpl.h>

Public Types

typedef S subcharge
 
typedef NU1Charge< N, S > charge
 
typedef std::vector< chargecharge_v
 

Static Public Member Functions

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

Static Public Attributes

static const charge IdentityCharge = typename NU1_template<N,S>::charge()
 
static const bool finite = false
 

Detailed Description

template<int N, class S = int>
class NU1_template< N, S >

Definition at line 266 of file nu1_tpl.h.

Member Typedef Documentation

template<int N, class S = int>
typedef NU1Charge<N, S> NU1_template< N, S >::charge

Definition at line 270 of file nu1_tpl.h.

template<int N, class S = int>
typedef std::vector<charge> NU1_template< N, S >::charge_v

Definition at line 271 of file nu1_tpl.h.

template<int N, class S = int>
typedef S NU1_template< N, S >::subcharge

Definition at line 269 of file nu1_tpl.h.

Member Function Documentation

template<int N, class S = int>
static charge NU1_template< N, S >::fuse ( charge  a,
charge  b 
)
inlinestatic

Definition at line 276 of file nu1_tpl.h.

277  {
278  return a+b;
279  }
template<int N, class S = int>
template<int R>
static charge NU1_template< N, S >::fuse ( boost::array< charge, R > const &  v)
inlinestatic

Definition at line 281 of file nu1_tpl.h.

282  {
283  charge ret = v[0];
284  for (int i = 1; i < R; ++i)
285  ret = fuse(ret, v[i]);
286  return ret;
287  }
static charge fuse(charge a, charge b)
Definition: nu1_tpl.h:276
NU1Charge< N, S > charge
Definition: nu1_tpl.h:270

Member Data Documentation

template<int N, class S = int>
const bool NU1_template< N, S >::finite = false
static

Definition at line 274 of file nu1_tpl.h.

template<int N, class S = int>
const NU1_template< N, S >::charge NU1_template< N, S >::IdentityCharge = typename NU1_template<N,S>::charge()
static

Definition at line 273 of file nu1_tpl.h.


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