◆ sqr_abs
Callable object computing the sqr_abs operation. Required header: Members Functions
Definition: value.hpp:83 Parameters
Return value Computes elementwise the square of the absolute value of Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/sqr_abs.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<4>>;
int main()
{
wide_ft pf = {-1.0f, 2.0f, -3.0f, 182.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = -32768.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_sqr_abs_ sqr_abs Callable object computing the sqr_abs operation. Definition: sqr_abs.hpp:63 |