SyTen
syten::EnergyTruncation::EnergyTruncationPolicy Class Reference
+ Inheritance diagram for syten::EnergyTruncation::EnergyTruncationPolicy:
+ Collaboration diagram for syten::EnergyTruncation::EnergyTruncationPolicy:

Public Member Functions

template<typename Vec >
SRDef sp_convergence (DenseTensor< 2, SDef > mat, EnergyWindow const &energy_window, EnergyWindow const &relative_energy_window, SRDef const &truncation_threshold, std::vector< Vec > const &krylov)
 Tests convergence of energy truncation via i) evaluation of expansion coefficients <e_i|kv_1> of initial state |kv_1> restricted to eigenstates of effective Hamiltonian in given energy window (e_i \in (e_{min}, e_{max})) ii) convergence criterion is obtained by evaluating norm of coefficient vector. More...
 
template<typename Vec >
auto sp_result (std::vector< Vec > const &krylov, Vec &result, SRDef initial_norm, bool const &project_dense) const
 Calculates the result based on coefficients previously-calculated in sp_convergence(). More...
 
template<typename... Unused>
void sp_wrapup (Unused &&...)
 Unused dummy implementation. More...
 

Static Private Member Functions

static DenseTensor< 1, SDefget_coeffs (DenseTensor< 2, SDef > mat)
 Calculates coefficients by solving the subproblem. More...
 

Private Attributes

DenseTensor< 1, SDefmemoizedCoeffs
 Coefficients calculated during previous call. More...
 
DenseTensor< 1, SDefmemoizedComplementaryCoeffs
 Coefficients in Krylov space complementary to the one spanned by states covering allowed energy window, calculated during previous call. More...
 
DenseTensor< 2, SDefmemoizedMatrix
 Overlap matrix between Krylov states and energy eigenstates. More...
 

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