SyTen

◆ eliminate_to_zero() [1/2]

template<typename Scalar , typename ThresholdType >
void syten::eliminate_to_zero ( Scalar &  n,
ThresholdType const &  t 
)
inline

Checks if n is over the threshold t ยท SYTEN_EZERO_THRESHOLD.

If yes, returns false. If not, sets n to 0 and returns true.

References SYTEN_EZERO_THRESHOLD, and underThreshold().

Referenced by prodD().

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