E.V.E
v2022.09.01

◆ is_flint

eve::is_flint = {}
inlineconstexpr

Returns a logical true if and only if the element value is a floating value representing an integer.

Defined in Header

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_value T >
eve::as_logical<T> is_flint(T x) noexcept;
}
constexpr callable_is_flint_ is_flint
Returns a logical true if and only if the element value is a floating value representing an integer.
Definition: is_flint.hpp:66
Definition: all_of.hpp:22

Parameters

Return value

The call eve;is_flint[mask](x) is semantically equivalent to: eve::is_eqz (eve::frac (x));

This means that x is a floating real value representing an integer (flint is a shortcut for 'floating integer').

Example

#include <eve/module/core.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.0f, 1.0f, -1.5f, -2.0f, eve::valmax(eve::as<float>()),
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> is_flint(pf) = " << eve::is_flint(pf) << '\n';
float xf = 1.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> is_flint(xf) = " << eve::is_flint(xf) << '\n';
return 0;
}
constexpr callable_valmax_ valmax
Computes the the greatest representable value.
Definition: valmax.hpp:55
constexpr callable_maxflint_ maxflint
Computes the the greatest floating point representing an integer and such that n !...
Definition: maxflint.hpp:59
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

Semantic Modifiers