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

Returns minimal possible value as identity for MAX operations. More...

#include <CL/sycl/known_identity.hpp>

Collaboration diagram for cl::sycl::detail::known_identity_impl< BinaryOperation, AccumulatorT, std::enable_if_t< IsMaximumIdentityOp< 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< IsMaximumIdentityOp< AccumulatorT, BinaryOperation >::value > >

Returns minimal possible value as identity for MAX operations.

Definition at line 280 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< IsMaximumIdentityOp< AccumulatorT, BinaryOperation >::value > >::value
staticconstexpr
Initial value:
= static_cast<AccumulatorT>(
std::numeric_limits<AccumulatorT>::has_infinity
? static_cast<AccumulatorT>(
-std::numeric_limits<AccumulatorT>::infinity())
: std::numeric_limits<AccumulatorT>::lowest())

Definition at line 283 of file known_identity.hpp.


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