SyTen

◆ add()

template<typename Type >
void syten::BasisMap::add ( Index  size,
Type &&  reps 
)
inline

Adds an element to the basis.

Parameters
sizesize of the reduced tensor block of that element
repsSector of irreps denoting the symmetry sector of that element

Only templated to allow for deduction on &&, avoiding the const& overload.

References std::unordered_map< Sector, Index >::size(), and SYTEN_ASSERT_DEBUG.

Referenced by syten::Tensor< rank >::getBasisMap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: