Callable object computing the golden ratio : \(\frac{1+\sqrt5}2\).
Defined in Header
#include <eve/module/math.hpp>
{
template< eve::value T >
}
constexpr callable_phi_ phi
Callable object computing the golden ratio : .
Definition: phi.hpp:49
Lightweight type-wrapper.
Definition: as.hpp:29
Parameters
x
: Type wrapper instance embedding the type of the constant.
Return value
The call eve::phi(as<T>())
returns the golden ratio.
#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
int main()
{
wide_ft wxf;
std::cout << "---- simd" << std::setprecision(9) << std::endl
double xf;
std::cout << "---- scalar" << std::endl
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65