◆ acos
Callable object computing acos. Required header: Members Functions
Definition: value.hpp:83 Parameters Return value Returns the elementwise arc cosine of the input in the range \([0 , \pi]\). In particular:
Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/acos.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide <float, eve::fixed<4>>;
int main()
{
wide_ft pf = { 0.0f, 1.0f, -1.0f, -0.5f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = 1.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
|