SyTen

◆ TensorBlock() [1/3]

template<Rank rank>
template<typename TypeDense , typename TypeSym , typename TypeCGC >
syten::TensorBlock< rank >::TensorBlock ( TypeDense &&  m_,
TypeSym &&  s_,
TypeCGC &&  c_ 
)
inline

Standard ctor.

Parameters
m_reduced tensor
s_vector of Sector informations for each leg
c_vector of CGC spaces for each symmetry

Enforcing type deduction on the arguments allows && to bind to const lvalue references as well as rvalue references. This happens independently for all three arguments, meaning I don't have to provide 8 different constructors :). std::forward is then used to forward the deduced type (either const& or &&) perfectly to the ctor of the member elements.

References syten::TensorBlock< rank >::updateTransform().

+ Here is the call graph for this function: