VMPS++
Loading...
Searching...
No Matches
DmrgTypedefs.h File Reference
#include "symmetry/qarray.h"
#include "LanczosTypedefs.h"
Include dependency graph for DmrgTypedefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PushType< Operator, Scalar >
 
struct  VMPS::DIRECTION
 
struct  DMRG
 
struct  DMRG::DIRECTION
 
struct  DMRG::BROOM
 
struct  DMRG::VERBOSITY
 
struct  DMRG::COMPRESSION
 
struct  DMRG::RESIZE
 
struct  DMRG::CONVTEST
 
struct  DMRG::ITERATION
 
struct  DMRG::CONTROL
 
struct  DMRG::CONTROL::DEFAULT
 
struct  DMRG::CONTROL::GLOB
 
struct  DMRG::CONTROL::DYN
 
struct  DMRG::CONTROL::LOC
 
struct  refEnergy
 
struct  TwoSiteData< Symmetry, Scalar >
 

Namespaces

namespace  Sym
 
namespace  VMPS
 
namespace  PROP
 

Macros

#define IS_REAL_FUNCTION
 
#define CONJ_IF_COMPLEX
 
#define EIGEN_INITIALIZE_MATRICES_BY_ZERO
 
#define SPIN_INDEX_ENUM
 
#define KIND_ENUM
 
#define EIGEN_DEFAULT_SPARSE_INDEX_TYPE   int
 
#define DMRG_CONTROL_DEFAULT_MIN_NSV   0
 

Typedefs

typedef SparseMatrix< double, ColMajor, EIGEN_DEFAULT_SPARSE_INDEX_TYPESparseMatrixXd
 
typedef SparseMatrix< std::complex< double >, ColMajor, EIGEN_DEFAULT_SPARSE_INDEX_TYPESparseMatrixXcd
 

Enumerations

enum  SPIN_INDEX { UP =false , DN =true , NOSPIN =2 , UPDN =3 }
 
enum  SPINOP_LABEL {
  SX , SY , iSY , SZ ,
  SP , SM , QZ , QP ,
  QM , QPZ , QMZ
}
 
enum  STRING { NOSTRING , STRINGX , STRINGY , STRINGZ }
 
enum  MODEL_FAMILY { HEISENBERG , HUBBARD , KONDO , SPINLESS }
 
enum  Sym::KIND {
  Sym::S , Sym::Salt , Sym::T , Sym::N ,
  Sym::M , Sym::Nup , Sym::Ndn , Sym::Nparity ,
  Sym::K , Sym::S , Sym::Salt , Sym::T ,
  Sym::N , Sym::M , Sym::Nup , Sym::Ndn ,
  Sym::Nparity , Sym::K
}
 
enum  PARITY { EVEN =0 , ODD =1 }
 
enum  SUB_LATTICE { A =1 , B =-1 }
 
enum  KONDO_SUBSYSTEM { IMP , SUB , IMPSUB }
 
enum  BC { OPEN =true , INFINITE =false }
 

Functions

double isReal (double x)
 
double isReal (std::complex< double > x)
 
double conjIfcomplex (double x)
 
std::complex< double > conjIfcomplex (std::complex< double > x)
 
SPIN_INDEX operator! (const SPIN_INDEX sigma)
 
std::ostream & operator<< (std::ostream &s, SPIN_INDEX sigma)
 
std::ostream & operator<< (std::ostream &s, SPINOP_LABEL Sa)
 
std::ostream & operator<< (std::ostream &s, STRING STR)
 
SPINOP_LABEL STRING_TO_SPINOP (STRING STR)
 
std::ostream & operator<< (std::ostream &s, MODEL_FAMILY mf)
 
std::ostream & operator<< (std::ostream &s, Sym::KIND l)
 
std::ostream & operator<< (std::ostream &s, SUB_LATTICE sublat)
 
SUB_LATTICE flip_sublattice (SUB_LATTICE sublat)
 
void sublattice_check (const ArrayXXd &hopping, const vector< SUB_LATTICE > &G)
 
std::ostream & operator<< (std::ostream &s, BC boundary)
 
std::ostream & VMPS::operator<< (std::ostream &s, VMPS::DIRECTION::OPTION DIR)
 
std::ostream & operator<< (std::ostream &s, DMRG::VERBOSITY::OPTION VERB)
 
std::ostream & operator<< (std::ostream &s, DMRG::CONVTEST::OPTION TEST)
 
std::istream & operator>> (std::istream &str, DMRG::VERBOSITY::OPTION &VERB)
 
std::ostream & operator<< (std::ostream &s, DMRG::DIRECTION::OPTION DIR)
 
std::ostream & operator<< (std::ostream &s, DMRG::ITERATION::OPTION ITER)
 
std::ostream & operator<< (std::ostream &s, refEnergy r)
 

Variables

const bool PROP::HERMITIAN = true
 
const bool PROP::NON_HERMITIAN = false
 
const bool PROP::UNITARY = true
 
const bool PROP::NON_UNITARY = false
 
const bool PROP::FERMIONIC = true
 
const bool PROP::NON_FERMIONIC = false
 
const bool PROP::BOSONIC = false
 
const bool PROP::COMPRESS = true
 
const bool PROP::DONT_COMPRESS = false
 

Macro Definition Documentation

◆ CONJ_IF_COMPLEX

#define CONJ_IF_COMPLEX

Definition at line 26 of file DmrgTypedefs.h.

◆ DMRG_CONTROL_DEFAULT_MIN_NSV

#define DMRG_CONTROL_DEFAULT_MIN_NSV   0

Definition at line 353 of file DmrgTypedefs.h.

◆ EIGEN_DEFAULT_SPARSE_INDEX_TYPE

#define EIGEN_DEFAULT_SPARSE_INDEX_TYPE   int

Definition at line 181 of file DmrgTypedefs.h.

◆ EIGEN_INITIALIZE_MATRICES_BY_ZERO

#define EIGEN_INITIALIZE_MATRICES_BY_ZERO

Definition at line 31 of file DmrgTypedefs.h.

◆ IS_REAL_FUNCTION

#define IS_REAL_FUNCTION

Definition at line 20 of file DmrgTypedefs.h.

◆ KIND_ENUM

#define KIND_ENUM

Definition at line 108 of file DmrgTypedefs.h.

◆ SPIN_INDEX_ENUM

#define SPIN_INDEX_ENUM

Definition at line 34 of file DmrgTypedefs.h.

Typedef Documentation

◆ SparseMatrixXcd

typedef SparseMatrix<std::complex<double>,ColMajor,EIGEN_DEFAULT_SPARSE_INDEX_TYPE> SparseMatrixXcd

Definition at line 185 of file DmrgTypedefs.h.

◆ SparseMatrixXd

typedef SparseMatrix<double,ColMajor,EIGEN_DEFAULT_SPARSE_INDEX_TYPE> SparseMatrixXd

Definition at line 184 of file DmrgTypedefs.h.

Enumeration Type Documentation

◆ BC

enum BC
Enumerator
OPEN 
INFINITE 

Definition at line 160 of file DmrgTypedefs.h.

◆ KONDO_SUBSYSTEM

Enumerator
IMP 
SUB 
IMPSUB 

Definition at line 132 of file DmrgTypedefs.h.

◆ MODEL_FAMILY

Enumerator
HEISENBERG 
HUBBARD 
KONDO 
SPINLESS 

Definition at line 96 of file DmrgTypedefs.h.

◆ PARITY

enum PARITY
Enumerator
EVEN 
ODD 

Definition at line 128 of file DmrgTypedefs.h.

◆ SPIN_INDEX

enum SPIN_INDEX
Enumerator
UP 

spin up

DN 

spin down

NOSPIN 

no spin (for consistency, also useful for iterations)

UPDN 

both up and down (for consistency)

Definition at line 35 of file DmrgTypedefs.h.

◆ SPINOP_LABEL

Enumerator
SX 
SY 
iSY 
SZ 
SP 
SM 
QZ 
QP 
QM 
QPZ 
QMZ 

Definition at line 60 of file DmrgTypedefs.h.

◆ STRING

enum STRING
Enumerator
NOSTRING 
STRINGX 
STRINGY 
STRINGZ 

Definition at line 78 of file DmrgTypedefs.h.

◆ SUB_LATTICE

Enumerator

Definition at line 130 of file DmrgTypedefs.h.

Function Documentation

◆ conjIfcomplex() [1/2]

double conjIfcomplex ( double  x)
inline

Definition at line 27 of file DmrgTypedefs.h.

◆ conjIfcomplex() [2/2]

std::complex< double > conjIfcomplex ( std::complex< double >  x)
inline

Definition at line 28 of file DmrgTypedefs.h.

◆ flip_sublattice()

SUB_LATTICE flip_sublattice ( SUB_LATTICE  sublat)

Definition at line 141 of file DmrgTypedefs.h.

◆ isReal() [1/2]

double isReal ( double  x)
inline

Definition at line 21 of file DmrgTypedefs.h.

◆ isReal() [2/2]

double isReal ( std::complex< double >  x)
inline

Definition at line 22 of file DmrgTypedefs.h.

◆ operator!()

SPIN_INDEX operator! ( const SPIN_INDEX  sigma)

Definition at line 43 of file DmrgTypedefs.h.

◆ operator<<() [1/12]

std::ostream & operator<< ( std::ostream &  s,
BC  boundary 
)

Definition at line 167 of file DmrgTypedefs.h.

◆ operator<<() [2/12]

std::ostream & operator<< ( std::ostream &  s,
DMRG::CONVTEST::OPTION  TEST 
)

Definition at line 429 of file DmrgTypedefs.h.

◆ operator<<() [3/12]

std::ostream & operator<< ( std::ostream &  s,
DMRG::DIRECTION::OPTION  DIR 
)

Definition at line 445 of file DmrgTypedefs.h.

◆ operator<<() [4/12]

std::ostream & operator<< ( std::ostream &  s,
DMRG::ITERATION::OPTION  ITER 
)

Definition at line 452 of file DmrgTypedefs.h.

◆ operator<<() [5/12]

std::ostream & operator<< ( std::ostream &  s,
DMRG::VERBOSITY::OPTION  VERB 
)

Definition at line 420 of file DmrgTypedefs.h.

◆ operator<<() [6/12]

std::ostream & operator<< ( std::ostream &  s,
MODEL_FAMILY  mf 
)

Definition at line 98 of file DmrgTypedefs.h.

◆ operator<<() [7/12]

std::ostream & operator<< ( std::ostream &  s,
refEnergy  r 
)

Definition at line 467 of file DmrgTypedefs.h.

◆ operator<<() [8/12]

std::ostream & operator<< ( std::ostream &  s,
SPIN_INDEX  sigma 
)

Definition at line 50 of file DmrgTypedefs.h.

◆ operator<<() [9/12]

std::ostream & operator<< ( std::ostream &  s,
SPINOP_LABEL  Sa 
)

Definition at line 62 of file DmrgTypedefs.h.

◆ operator<<() [10/12]

std::ostream & operator<< ( std::ostream &  s,
STRING  STR 
)

Definition at line 80 of file DmrgTypedefs.h.

◆ operator<<() [11/12]

std::ostream & operator<< ( std::ostream &  s,
SUB_LATTICE  sublat 
)

Definition at line 134 of file DmrgTypedefs.h.

◆ operator<<() [12/12]

std::ostream & operator<< ( std::ostream &  s,
Sym::KIND  l 
)

Definition at line 114 of file DmrgTypedefs.h.

◆ operator>>()

std::istream & operator>> ( std::istream &  str,
DMRG::VERBOSITY::OPTION VERB 
)
inline

Definition at line 438 of file DmrgTypedefs.h.

◆ STRING_TO_SPINOP()

SPINOP_LABEL STRING_TO_SPINOP ( STRING  STR)

Definition at line 89 of file DmrgTypedefs.h.

◆ sublattice_check()

void sublattice_check ( const ArrayXXd &  hopping,
const vector< SUB_LATTICE > &  G 
)

Definition at line 146 of file DmrgTypedefs.h.