![]() |
Block-Structured AMR Software Framework
|
Functions | |
| __host__ __device__ bool | any_of (bool const v) |
| template<typename T > | |
| __host__ __device__ detail::where_expression< T > | where (bool const mask, T &value) |
| template<typename T > | |
| __host__ __device__ T | select (bool const mask, T const &true_val, T const &false_val) |
| template<typename T > | |
| __host__ __device__ T | reduce (T const &v) |
| template<typename T , typename BinaryOperation > | |
| __host__ __device__ T | reduce (T const &v, BinaryOperation const &) |
| template<typename T > | |
| __host__ __device__ T | hmin (T const &v) |
| template<typename T > | |
| __host__ __device__ T | hmax (T const &v) |
| template<typename T > | |
| __host__ __device__ T | min (T const &a, T const &b) |
| template<typename T > | |
| __host__ __device__ T | max (T const &a, T const &b) |
|
inline |
True if the boolean value is true (scalar identity fallback for simd any_of)
Example:
|
inline |
Largest element (scalar identity fallback for simd hmax)
|
inline |
Smallest element (scalar identity fallback for simd hmin)
|
inline |
Element-wise maximum (scalar fallback for simd max)
|
inline |
Element-wise minimum (scalar fallback for simd min)
|
inline |
Horizontal reduction over all elements (scalar identity fallback for simd reduce)
For a scalar, the reduction over its single "element" is the value itself, independent of the (associative) binary operation.
Example:
|
inline |
Horizontal reduction with an explicit binary operation (scalar identity fallback)
|
inline |
Vectorized ternary operator (scalar fallback for simd select)
|
inline |
Masked assignment expression (scalar fallback for simd where)
Returns an expression object whose assignment operator conditionally updates value only when mask is true.
Example: