Callable object computing powm1: \(x^y-1\).
{
template< eve::floating_value T, eve::floating_value U >
T
powm1(T x, U y)
noexcept;
}
constexpr callable_powm1_ powm1
Callable object computing powm1: .
Definition: powm1.hpp:62
Definition: all_of.hpp:22
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.0f, 1.1f, 1.10f, -2.3f, 2.0f,
wide_ft qf = {4.0f, 1.0f, -1.0f, 0.0f, -0.5f,
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "<- qf = " << qf << '\n'
<<
"-> powm1(pf, qf) = " <<
eve::powm1(pf, qf) <<
'\n'
;
float xf = 4.0f;
float yf = -1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
<<
"-> powm1(xf, yf) = " <<
eve::powm1(xf, yf) <<
'\n';
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65