◆ indeg()

IEEEValue boost::simd::indeg ( IEEEValue const &  x)

This function object converts radian to degree.

Header <boost/simd/function/indeg.hpp>
Example:
#include <boost/simd/trigonometric.hpp>
#include <boost/simd/pack.hpp>
#include <iostream>
namespace bs = boost::simd;
using pack_ft = bs::pack <float, 4>;
int main()
{
pack_ft pf = {1.0f, 2.0f, -1.0f, 0.5f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> bs::indeg(pf) = " << bs::indeg(pf) << '\n';
float xf = 2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> bs::indeg(xf) = " << bs::indeg(xf) << '\n';
return 0;
}
Possible output:
---- simd
<- pf = (1, 2, -1, 0.5)
-> bs::indeg(pf) = (57.2958, 114.592, -57.2958, 28.6479)
---- scalar
<- xf = 2
-> bs::indeg(xf) = 114.592