SyTen

◆ eliminate_to_zero() [2/2]

template<typename Scalar , typename ThresholdType >
void syten::eliminate_to_zero ( std::complex< 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 imag(), overThreshold(), real(), SYTEN_EZERO_THRESHOLD, and underThreshold().

+ Here is the call graph for this function: