ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
nu1_tpl.h File Reference
#include <iostream>
#include <vector>
#include <list>
#include <boost/lexical_cast.hpp>
#include <boost/functional/hash.hpp>
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/array.hpp>

Go to the source code of this file.

Classes

class  NU1Charge< N, S >
 
class  boost::hash< NU1Charge< N, S > >
 
class  boost::hash< std::pair< NU1Charge< N, S >, NU1Charge< N, S > > >
 
class  boost::hash< std::pair< int, int > >
 
struct  tpl_ops_< N, I >
 
struct  tpl_ops_< N, N >
 
class  NU1_template< N, S >
 

Namespaces

 boost
 

Functions

template<int N, class S >
std::ostream & operator<< (std::ostream &os, NU1Charge< N, S > const &c)
 
template<int N, class S >
bool operator< (NU1Charge< N, S > const &a, NU1Charge< N, S > const &b)
 
template<int N, class S >
bool operator> (NU1Charge< N, S > const &a, NU1Charge< N, S > const &b)
 
template<int N, class S >
bool operator== (NU1Charge< N, S > const &a, NU1Charge< N, S > const &b)
 
template<int N, class S >
bool operator!= (NU1Charge< N, S > const &a, NU1Charge< N, S > const &b)
 
template<int N, class S >
NU1Charge< N, S > operator+ (NU1Charge< N, S > const &a, NU1Charge< N, S > const &b)
 
template<int N, class S >
NU1Charge< N, S > operator- (NU1Charge< N, S > const &rhs)
 
template<int N, class S >
NU1Charge< N, S > operator/ (NU1Charge< N, S > const &a, int n)
 
template<int N, class S >
NU1Charge< N, S > operator/ (int n, NU1Charge< N, S > const &a)
 

Function Documentation

template<int N, class S >
bool operator!= ( NU1Charge< N, S > const &  a,
NU1Charge< N, S > const &  b 
)
inline

Definition at line 232 of file nu1_tpl.h.

233 {
234  return !(a==b);
235 }
template<int N, class S >
NU1Charge<N, S> operator+ ( NU1Charge< N, S > const &  a,
NU1Charge< N, S > const &  b 
)

Definition at line 238 of file nu1_tpl.h.

240 {
241  NU1Charge<N, S> ret;
242  tpl_ops_<N, 0>().operator_plus(a.begin(), b.begin(), ret.begin());
243  return ret;
244 }
S * begin()
Definition: nu1_tpl.h:57
template<int N, class S >
NU1Charge<N, S> operator- ( NU1Charge< N, S > const &  rhs)

Definition at line 247 of file nu1_tpl.h.

248 {
249  NU1Charge<N, S> ret;
250  tpl_ops_<N, 0>().operator_uminus(rhs.begin(), ret.begin());
251  return ret;
252 }
S * begin()
Definition: nu1_tpl.h:57
template<int N, class S >
NU1Charge<N, S> operator/ ( NU1Charge< N, S > const &  a,
int  n 
)

Definition at line 255 of file nu1_tpl.h.

256 {
257  NU1Charge<N, S> ret;
258  tpl_ops_<N, 0>().operator_div(a.begin(), ret.begin(), n);
259  return ret;
260 }
S * begin()
Definition: nu1_tpl.h:57
template<int N, class S >
NU1Charge<N, S> operator/ ( int  n,
NU1Charge< N, S > const &  a 
)

Definition at line 262 of file nu1_tpl.h.

262 { return a/n; }
template<int N, class S >
bool operator< ( NU1Charge< N, S > const &  a,
NU1Charge< N, S > const &  b 
)
inline

Definition at line 214 of file nu1_tpl.h.

215 {
216  return tpl_ops_<N, 0>().operator_lt(a.begin(), b.begin());
217 }
S * begin()
Definition: nu1_tpl.h:57
template<int N, class S >
std::ostream& operator<< ( std::ostream &  os,
NU1Charge< N, S > const &  c 
)

Definition at line 123 of file nu1_tpl.h.

124 {
125  os << "<";
126  for (int i = 0; i < N; ++i) {
127  os << c[i];
128  if (i+1 < N)
129  os << ",";
130  }
131  os << ">";
132  return os;
133 }
template<int N, class S >
bool operator== ( NU1Charge< N, S > const &  a,
NU1Charge< N, S > const &  b 
)
inline

Definition at line 226 of file nu1_tpl.h.

227 {
228  return tpl_ops_<N, 0>().operator_eq(a.begin(), b.begin());
229 }
S * begin()
Definition: nu1_tpl.h:57
template<int N, class S >
bool operator> ( NU1Charge< N, S > const &  a,
NU1Charge< N, S > const &  b 
)
inline

Definition at line 220 of file nu1_tpl.h.

221 {
222  return tpl_ops_<N, 0>().operator_gt(a.begin(), b.begin());
223 }
S * begin()
Definition: nu1_tpl.h:57