SyTen

◆ select_cutoff_relative()

template<typename IterFirst , typename IterLast >
IterFirst syten::select_cutoff_relative ( IterFirst  begin,
IterLast  end 
)

Returns the first element which is smaller than the first element by a factor larger than SYTEN_SMALL_THRESHOLD.

Requires [begin, end) to be sorted in descending order by absolute value. If *begin is exactly zero, begin will be returned immediately.

Example\n Given [1e2, 1e-2, 1e-6, 1e-14, 1e-16, 1e-50], returns
an iterator to the element 1e-14.

References abs(), and underThreshold().

Referenced by rank().

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