SyTen

◆ regularise_abs()

template<typename Scalar >
void syten::regularise_abs ( Scalar *  first,
Scalar *  last,
typename ScalarBase< typename IdentityType< Scalar >::type >::type  threshold 
)

Changes the absolute value of entries with very similar absolute values to the median of those.

Handle with care, will introduce errors!

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

+ Here is the call graph for this function: