SyTen
syten::MPS::VariationalAdd::Workspace< StateIteratorType, ScalarIteratorType > Class Template Reference
+ Collaboration diagram for syten::MPS::VariationalAdd::Workspace< StateIteratorType, ScalarIteratorType >:

Public Types

typedef SDef ScalarType
 
typedef syten::MPS::State StateType
 

Public Member Functions

Workspaceoperator= (Workspace &&)=default
 Move assignment op defaulted. More...
 
Workspaceoperator= (Workspace const &)=delete
 Copy assignment op deleted. More...
 
 Workspace ()=delete
 Default ctor deleted. More...
 
 Workspace (const Index &_active_sites, const syten::MPS::State &_state, StateIteratorType _summands_begin, StateIteratorType _summands_end, ScalarIteratorType _coefficients_begin, ScalarIteratorType _coefficients_end)
 
 Workspace (Workspace &&)=default
 Move ctor defaulted. More...
 
 Workspace (Workspace const &)=delete
 Copy ctor deleted. More...
 

Protected Member Functions

void expand (const syten::Truncation &_trunc)
 
SRDef finish_sweep ()
 
void gen_log (std::ostream &_sstr)
 
void gen_log_header (std::ostream &_sstr)
 
syten::IterativeExitReason init_workspace ()
 
syten::MPS::State pop_result ()
 
void prepare_sweep ()
 
void step_next ()
 
bool sweep_complete ()
 
void update ()
 

Private Types

enum  SweepType { left , right , unknown }
 

Private Member Functions

Index n_coefficients () const
 
Index n_summands () const
 

Private Attributes

Index active_sites
 
ScalarIteratorType coefficients_begin
 
ScalarIteratorType coefficients_end
 
std::list< std::vector< syten::Tensor< 2 > > > l_envs
 
std::list< std::vector< syten::Tensor< 2 > > > r_envs
 
StateType state
 
StateIteratorType summands_begin
 
StateIteratorType summands_end
 
Index sweep_pos
 
SweepType sweep_type
 
std::list< SRDeftrunc_wts
 

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