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

◆ slice() [1/2]

template<arithmetic_scalar_value Type, typename Cardinal >
auto eve::wide< Type, Cardinal >::slice ( ) const
inline

Example:

#include <eve/wide.hpp>
#include <iostream>
int main()
{
// Generates the wide [1 ... N]
eve::wide<int> r = [](auto i, auto c) { return i + 1;};
std::cout << r << "\n";
auto[lo,hi] = r.slice();
std::cout << lo << " " << hi << "\n";
}
constexpr auto hi
elementwise_callable computing the most significant half of each lane.
Definition hi.hpp:71
constexpr auto lo
Computes the least significant half of each lane.
Definition lo.hpp:73
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition translation.hpp:107