Computes the rounding to n significants digits of the first input.
{
template< eve::value T, eve::integral_value N >
}
constexpr callable_significants_ significants
Computes the rounding to n significants digits of the first input.
Definition: significants.hpp:55
typename eve::detail::common_value_impl< void, Ts... >::type common_value_t
Computes the SIMD-compatible common type between all Ts.
Definition: common_value.hpp:50
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
using iT = std::int32_t;
int main()
{
wide_it qi = {0, 1, 2, 4};
wide_ft pf = {1.2345678901f, 1.2345678901f, 1.2345678901f, 1.2345678901f};
std::cout << "---- simd" << std::setprecision(8) << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qi = " << qi << '\n'
float xf = 2.34316;
iT yi = 3;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yi = " << yi << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65