SyTen

◆ validateCGCTensor()

template<Rank rank, typename Scalar >
bool syten::validateCGCTensor ( SparseTensor< rank, Scalar > const &  a)
inline

CGC tensors are supposed to give the identity whenever contracted with themselves over all but one leg.

We test this here explicitly for all legs. If everything is okay, return true, else, false.

References logGW(), prodS(), rank(), and validateCGCContraction().

+ Here is the call graph for this function: