SyTen
syten::T3N::DMRG::Contractions Struct Reference

Data type used to store contractions of the Hamiltonian with the state. More...

#include <dmrg.h>

+ Inheritance diagram for syten::T3N::DMRG::Contractions:
+ Collaboration diagram for syten::T3N::DMRG::Contractions:

Public Member Functions

MemoryUsage::MemorySize allocSize () const
 Returns the total size of this. More...
 
void cache (bool const do_cache=true)
 Caches all elements. More...
 
template<typename Archive >
void load (Archive &arch, unsigned int const in_version)
 Boost load. More...
 
template<typename Archive >
void load_rec (Archive &arch, Ptrc ptr)
 Load recursive helper. More...
 
template<typename Archive >
void save (Archive &arch, unsigned int const) const
 Boost save. More...
 
template<typename Archive >
void save_rec (Archive &arch, Ptrc ptr) const
 Save recursive helper. More...
 
void uncache ()
 Uncaches all elements. More...
 
- Public Member Functions inherited from syten::T3N::Tree::Tree< Vec< T3NTensor > >
MemoryUsage::MemorySize allocSize () const
 
Structure genStructure () const
 Returns structure for pretty plotting. More...
 
Position left_most () const
 Returns the left-most node. More...
 
void load (Archive &arch, unsigned int const in_version)
 Boost load. More...
 
bool mp () const
 Returns true, if tree only contains physical nodes. More...
 
Treeoperator= (Tree &&other)
 Move assignment operator. More...
 
Treeoperator= (Tree const &other)
 Copy assignment operator. More...
 
bool operator== (Tree< OtherType > const &other) const
 Compare the structure of two trees. More...
 
Position right_most () const
 Returns the right-most node. More...
 
void save (Archive &arch, unsigned int) const
 Boost save. More...
 
Index size () const
 Counts all Nodes of this tree. More...
 
Index sizeOf (NodeType const type) const
 Counts the number of Nodes w/ the given type. More...
 
 Tree (NodeType root=NodeType::Physical)
 Default constructor. More...
 
 Tree (NodeType root=NodeType::Physical, Args... args)
 Constructor forwarding the container. More...
 
 Tree (Tree &&other)
 Move constructor. More...
 
 Tree (Tree const &other)
 Copy constructor. More...
 
 ~Tree ()
 Destructor. More...
 
Ptr operator[] (Position const &coordinate) const
 Returns the Ptr to the Node specified through the coordinate vector by the following syntax: More...
 
Ptr operator[] (int const element) const
 
void visit (Func &&func)
 Shortcut. More...
 
void visit (Func &&func, Ptr ptr)
 Shortcut. More...
 

Static Public Member Functions

static void cache (Ptr ptr, bool const do_cache=true)
 Caches all elements of node. More...
 
static void clear (Ptr ptr)
 Cleares all elements but keeps vector size. More...
 
static void uncache (Ptr ptr)
 
- Static Public Member Functions inherited from syten::T3N::Tree::Tree< Vec< T3NTensor > >
static void visit (Func &&f, const Pair< IterDirection, IterDirection > directions, Ptr ptr)
 
static std::result_of< Func(Ptr)>::type visit (Func &&f, typename std::result_of< Func(Ptr)>::type initial, Pair< IterDirection, IterDirection > directions, Ptr ptr)
 Recursively visits a subtree, bottom-first. More...
 
static std::result_of< Func(Ptr)>::type visit (Func &&f, Op &&operation, typename std::result_of< Func(Ptr)>::type initial, Pair< IterDirection, IterDirection > directions, Ptr ptr)
 

Public Attributes

bool cache_flag = false
 Determines if data should be cached immediately after de-serializing. More...
 
- Public Attributes inherited from syten::T3N::Tree::Tree< Vec< T3NTensor > >
Ptr Root
 Root of the tree. More...
 
Translator translator
 Instance. More...
 

Static Public Attributes

static std::array< std::string, rank > const names
 Leg-names. More...
 
static constexpr Index rank = 3
 Rank of a contraction. More...
 
static constexpr unsigned int version = 2
 Version number of state. More...
 
Index numbering.
static constexpr Index oIdx = 2
 Operator index. More...
 
static constexpr Index sIdx = 1
 State index. More...
 
static constexpr Index cIdx = 3
 Conjugate state index. More...
 

Additional Inherited Members

- Public Types inherited from syten::T3N::Tree::Tree< Vec< T3NTensor > >
using cPtr = const Node *
 An overload. More...
 
using cPtrc = const Node *const
 An overload. More...
 
typedef T3N::Tree::Node< ValueNode
 Shortcut for the Nodes. More...
 
using Ptr = Node *
 Pointer to Node. More...
 
using Ptrc = Node *const
 An overload. More...
 
typedef std::vector< std::tuple< Index, std::vector< Index >, NodeType, Index > > Structure
 Return type of tree information for plotting. More...
 
typedef std::map< int, PositionTranslator
 Translator to call Nodes. More...
 
typedef Vec< T3NTensorValue
 Type of the contained values. More...
 

Detailed Description

Data type used to store contractions of the Hamiltonian with the state.


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