◆ ceil
Callable object computing the ceil operation. Required header: Members Functions
template< value T > auto operator()( T x ) const noexcept;
Parameters
Return value Computes elementwise the smallest integer not less than auto operator[]( conditional_expression auto cond ) const noexcept;
Higher-order function generating a masked version of eve::ceil Parameters
Return value A Callable object so that the expression Supported decorators
ExampleSee it live on Compiler Explorer #include <eve/function/ceil.hpp>
#include <eve/wide.hpp>
#include <iostream>
using wide_ft = eve::wide<float, eve::fixed<8>>;
int main()
{
wide_ft pf = {-1.0f, -1.3f, -1.5f, -1.7f, 2.0f, 2.3f, 2.5f, 2.7f};
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
float xf = -32.768f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
return 0;
}
constexpr callable_ceil_ ceil Callable object computing the ceil operation. Definition: ceil.hpp:86 |