SyTen

◆ validateCGCContraction()

bool syten::validateCGCContraction ( SparseTensor< 2 > const &  input)

Returns true if input is proportional to the identity matrix.

Useful to validate that the contraction of a CGC tensor with itself over all but one leg comes out correctly.

References closeThreshold(), syten::SparseTensor< rank, Scalar >::dim(), logGW(), normSqd(), and SYTEN_DEBUG_THRESHOLD.

Referenced by dense(), syten::SVD::svd(), and validateCGCTensor().

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