SyTen

◆ regularise_real()

template<typename ScalarBase >
void syten::regularise_real ( std::complex< ScalarBase > *  first,
std::complex< ScalarBase > *  last,
ScalarBase  threshold 
)

Changes the real part of entries with very similar absolute real parts to the median of those.

Handle with care, will introduce errors!

References abs(), std::vector< T >::begin(), std::vector< T >::end(), imag(), std::partition_point(), real(), std::sort(), SYTEN_ASSERT, and syten::Caching::threshold.

+ Here is the call graph for this function: