syclreference.com
  1. SYCL
  2. | API Reference
  3. | Streams
  4. | abs_value

abs_value<valueT, true>

Helper class for adding a potentially negative value to the stream, overload for signed types

struct cl::sycl::detail::abs_value;

Member Functions

get

If value is negative, display the minus sign and return the absolute value

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000