Computes the Riemann \(\zeta\) function.
{
template< eve::floating_ordered_value T >
template< eve::floating_value T >
}
constexpr callable_zeta_ zeta
Computes the Riemann function.
Definition: zeta.hpp:54
SIMD-compatible representation of complex numbers.
Definition: complex.hpp:39
The value of the Riemann function defined as \(\displaystyle \zeta(s)=\sum_{n=0}^\infty \frac1{n^s}\) or its analytic continuation in the complex plane is returned.
#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.0f, -1.0f, 1.0f, -1.5f, 1.5f, -2.0f, 2.0f, -12.0f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<<
"-> zeta(pf) = " <<
eve::zeta(pf) <<
'\n';
float xf = 2.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<<
"-> zeta(xf) = " <<
eve::zeta(xf) <<
'\n';
return 0;
}
constexpr pedantic_type const pedantic
Higher-order Callable Object imbuing more standard semantic onto other Callable Objects.
Definition: pedantic.hpp:56
Wrapper for SIMD registers.
Definition: wide.hpp:65