SyTen

◆ operator==() [3/3]

bool syten::STensorImpl::operator== ( STensor const &  a,
STensor const &  b 
)

Equality comparison of two STensor objects.

Considers two STensor objects close if A·conj(B)/sqrt(|A|*|B|) is up to sqrt((size_A + size_B) * 0.5)*SYTEN_SMALL_THRESHOLD close to

  1. This is equivalent to the check done by operator== for syten::Tensor objects.

References if_constexpr, SYTEN_TENSOR_RANK, and syten::STensorImpl::STensor::visit().

+ Here is the call graph for this function: