SyTen

◆ insertDummy() [4/4]

template<Rank rank>
Tensor< rank+1 > syten::insertDummy ( Tensor< rank > const &  a,
Basis const &  vacuum,
Index const  which 
)
inline

Inserts an additional dummy leg transforming as vacuum as the which-th leg of the new tensor.

References syten::Basis::dir, syten::Tensor< rank >::dirs, syten::Tensor< rank >::emplace_back(), insertDummy(), std::move(), std::vector< T >::push_back(), syten::Tensor< rank >::reserve(), syten::Basis::size(), syten::Tensor< rank >::size(), and SYTEN_ASSERT_MSG.

+ Here is the call graph for this function: