#include <kernel_compare.h>
|
| template<typename Expr1 , typename Expr2 > |
| static FORCE_INLINE bool | reduce_all_approx_equal (const Expr1 &lhs, const Expr2 &rhs, T tolerance) noexcept |
| | Check if all logical elements of two expressions are approximately equal.
|
| |
template<typename T ,
my_size_t Bits, typename Arch >
◆ reduce_all_approx_equal()
template<typename T ,
my_size_t Bits, typename Arch >
template<typename Expr1 , typename Expr2 >
Check if all logical elements of two expressions are approximately equal.
Dispatches based on layout compatibility:
- Both unpermuted, same padding → fast physical slice iteration
- Otherwise → logical flat iteration (handles any layout combination)
Both expressions must have the same logical dimensions. TODO: do we need to check this at compile time, or is it guaranteed by the caller? think...!
- Parameters
-
| tolerance | Approximation tolerance for floating-point comparisons |
- Returns
- true if all corresponding logical elements are approximately equal
◆ simdWidth
template<typename T ,
my_size_t Bits, typename Arch >
The documentation for this struct was generated from the following file: