DPC++ Runtime
Runtime libraries for oneAPI DPC++
cl::sycl::detail::known_identity_impl< BinaryOperation, AccumulatorT, std::enable_if_t< IsMinimumIdentityOp< AccumulatorT, BinaryOperation >::value > > Struct Template Reference

Returns maximal possible value as identity for MIN operations. More...

#include <CL/sycl/known_identity.hpp>

Collaboration diagram for cl::sycl::detail::known_identity_impl< BinaryOperation, AccumulatorT, std::enable_if_t< IsMinimumIdentityOp< AccumulatorT, BinaryOperation >::value > >:

Static Public Attributes

static constexpr AccumulatorT value
 

Detailed Description

template<typename BinaryOperation, typename AccumulatorT>
struct cl::sycl::detail::known_identity_impl< BinaryOperation, AccumulatorT, std::enable_if_t< IsMinimumIdentityOp< AccumulatorT, BinaryOperation >::value > >

Returns maximal possible value as identity for MIN operations.

Definition at line 243 of file known_identity.hpp.

Member Data Documentation

◆ value

template<typename BinaryOperation , typename AccumulatorT >
constexpr AccumulatorT cl::sycl::detail::known_identity_impl< BinaryOperation, AccumulatorT, std::enable_if_t< IsMinimumIdentityOp< AccumulatorT, BinaryOperation >::value > >::value
staticconstexpr
Initial value:
= static_cast<AccumulatorT>(
std::numeric_limits<AccumulatorT>::has_infinity
? std::numeric_limits<AccumulatorT>::infinity()
: (std::numeric_limits<AccumulatorT>::max)())

Definition at line 246 of file known_identity.hpp.


The documentation for this struct was generated from the following file:
max
simd< _Tp, _Abi > max(const simd< _Tp, _Abi > &, const simd< _Tp, _Abi > &) noexcept
std
Definition: accessor.hpp:2616