ALPS MPS Codes
Reference documentation.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
MPOTensor_detail::col_cmp< Tuple > Struct Template Reference

#include <mpotensor_detail.h>

Public Member Functions

bool operator() (Tuple const &i, Tuple const &j) const
 

Detailed Description

template<class Tuple>
struct MPOTensor_detail::col_cmp< Tuple >

Definition at line 129 of file mpotensor_detail.h.

Member Function Documentation

template<class Tuple >
bool MPOTensor_detail::col_cmp< Tuple >::operator() ( Tuple const &  i,
Tuple const &  j 
) const
inline

Definition at line 131 of file mpotensor_detail.h.

132  {
133  if (get<1>(i) < get<1>(j))
134  return true;
135  else if (get<1>(i) > get<1>(j))
136  return false;
137  else
138  return get<0>(i) < get<0>(j);
139  }

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