E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches
eve::algo::traits< Settings > Struct Template Reference

A compile time set of all the tuning parameters passed to the algorithm. These allow you to fine-tune the loops and not being stuck with our defaults. More...

#include <eve/module/algo/algo/traits.hpp>

Detailed Description

template<typename Settings>
struct eve::algo::traits< Settings >

Unless you write your own algorithms like eve's, you probably won't need to use this class. If you do that, we suggest to looking at one of the algorithms from eve/module/algo/algo.

When calling you just pass individual traits via [], i.e.

eve::algo::find_if[eve::algo::expensive_callable][eve::algo::cosider_types<double>]()
constexpr auto expensive_callable
NOTE: equivalent to no_aligning + no_unrolling + single_pass By default eve algorithms will assume th...
Definition: traits.hpp:267
constexpr auto find_if
SIMD version of std::find_if.
Definition: find.hpp:130

You can also pass traits struct:

A compile time set of all the tuning parameters passed to the algorithm. These allow you to fine-tune...
Definition: traits.hpp:50

This is useful for prebuilding traits (for example eve::algo::default_simple_algo_traits)