SyTen

◆ operator==() [2/3]

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

Equality comparison of an STensor and a scalar.

Throws if STensor has non-zero rank. Checks if the two values are up to a threshold of (|A|+|B|)*0.5*SYTEN_SMALL_THRESHOLD close.

References syten::abs(), syten::closeThreshold(), and SYTEN_SMALL_THRESHOLD.

+ Here is the call graph for this function: