SyTen

◆ genTrivialCGC()

template<Rank rank>
std::vector< SparseTensor< rank, CDef > > syten::genTrivialCGC ( Index  numSyms = 1)
inline

Generates numSyms trivial CGC tensors of the specified rank.

The tensors have all dimensions equal to 1 and the sole entry has value 1. Useful only for \( U(1) \) symmetries.

References syten::RepRegister::dim(), std::vector< T >::push_back(), rank(), and syten::SparseTensor< rank, Scalar >::valSingleton().

+ Here is the call graph for this function: