Public Member Functions | List of all members
cudf::experimental::row::equality::nan_equal_physical_equality_comparator Struct Reference

Equality comparator functor that compares physical values rather than logical elements like lists, strings, or structs. It evaluates NaN as equal to other NaNs. More...

Public Member Functions

template<typename Element , CUDF_ENABLE_IF(not std::is_floating_point_v< Element >) >
constexpr bool operator() (Element const lhs, Element const rhs) const noexcept
 Operator for equality comparison of non-floating point values. More...
 
template<typename Element , CUDF_ENABLE_IF(std::is_floating_point_v< Element >) >
constexpr bool operator() (Element const lhs, Element const rhs) const noexcept
 Operator for equality comparison of floating point values. More...
 

Detailed Description

Equality comparator functor that compares physical values rather than logical elements like lists, strings, or structs. It evaluates NaN as equal to other NaNs.

Definition at line 1295 of file experimental/row_operators.cuh.

Member Function Documentation

◆ operator()() [1/2]

template<typename Element , CUDF_ENABLE_IF(not std::is_floating_point_v< Element >) >
constexpr bool cudf::experimental::row::equality::nan_equal_physical_equality_comparator::operator() ( Element const  lhs,
Element const  rhs 
) const
inlineconstexprnoexcept

Operator for equality comparison of non-floating point values.

Parameters
lhsFirst element
rhsSecond element
Returns
true if lhs == rhs else false

Definition at line 1304 of file experimental/row_operators.cuh.

◆ operator()() [2/2]

template<typename Element , CUDF_ENABLE_IF(std::is_floating_point_v< Element >) >
constexpr bool cudf::experimental::row::equality::nan_equal_physical_equality_comparator::operator() ( Element const  lhs,
Element const  rhs 
) const
inlineconstexprnoexcept

Operator for equality comparison of floating point values.

Note that NaN == NaN.

Parameters
lhsFirst element
rhsSecond element
Returns
true if lhs == rhs else false

Definition at line 1319 of file experimental/row_operators.cuh.


The documentation for this struct was generated from the following file: