E.V.E
v2023.02.15
Loading...
Searching...
No Matches

Detailed Description

Adds types to the cardinal selection.

Variables

template<typename ... Ts>
auto eve::algo::consider_types = ( consider_types_key = kumi::tuple<Ts...>{} )

Variable Documentation

◆ consider_types

template<typename ... Ts>
auto eve::algo::consider_types = ( consider_types_key = kumi::tuple<Ts...>{} )
Header file #include <eve/module/algo.hpp>
namespace eve::algo
{
template<typename... Ts> auto consider_types = eve_implementation_defined;
}
auto consider_types
Definition traits.hpp:256
Template Parameters
TsExtra types the selection weighs.

Adds Ts to the types the cardinal selection is based on. By default the cardinal of an algorithm is chosen from the types of its range; if the computation widens on the way, as a sum into a larger type does, the wider type is to be taken into account as well.

std::vector<float> data(1024);
// The body computes in double: with double weighed, the cardinal halves and a double
// value holds in one register rather than two.
auto d = eve::convert(x, eve::as<double>{});
});
constexpr auto transform_inplace
same as;
Definition transform.hpp:72
constexpr auto convert
Converts a value to another type.
Definition convert.hpp:84
constexpr auto exp
elementwise_callable object computing .
Definition exp.hpp:89
Lightweight type-wrapper.
Definition as.hpp:29
See also
force_cardinal, eve::algo::views::convert