operatorOP
id operatorOP(const sycl::id& lhs, const sycl::id& rhs);
Where OP
is: +
, -
, *
, /
, %
, <<
,
>>
, &
, |
,``^``, &&
, ||
, <
, >
,
<=
, >=
.
Constructs and returns a new instance of the sycl::id
class template
with the same dimensionality as lhs
id, where each element of the new
sycl::id
instance is the result of an element-wise OP
operator
between each element of lhs
id and each element of the
rhs
id. If the operator returns a bool
,
the result is the cast to size_t
.
id operatorOP(const sycl::id& lhs, const size_t& rhs);
Where OP
is: +
, -
, *
, /
, %
, <<
,
>>
, &
, |
, ^
, &&
, ||
, <
, >
,
<=
, >=
.
Constructs and returns a new instance of the sycl::id
class template
with the same dimensionality as lhs
id, where each element of the new
sycl::id
instance is the result of an element-wise OP
operator
between each element of this sycl::id
and the rhs
size_t
.
If the operator returns a bool
, the result is the cast to size_t
.
id& operatorOP(sycl::id& lhs, const sycl::id& rhs);
Where OP
is: +=
, -=
, *=
, /=
, %=
,
<<=
, >>=
, &=
, |=
, ^=
.
Assigns each element of lhs
id instance with the result of an
element-wise OP
operator between each element of lhs id
and
each element of the rhs
id and returns lhs
id.
If the operator returns a bool
, the result is the cast to size_t
.
id& operatorOP(sycl::id& lhs, const size_t& rhs);
Where OP
is: +=
, -=
, *=
, /=
, %=
,
<<=
, >>=
, &=
, |=
, ^=
.
Assigns each element of lhs
id instance with the result of an
element-wise OP
operator between each element of lhs
id
and the rhs
size_t
and returns lhs
id. If the operator
returns a bool
, the result is the cast to size_t
.
id operatorOP(const size_t& lhs, const sycl::id& rhs);
Where OP
is: +
, -
, *
, /
, %
, <<
,
>>
, &
, |
, ^
, &&
, ||
, <
, >
,
<=
, >=
.
Constructs and returns a new instance of the sycl::id
class template
with the same dimensionality as the rhs
id, where each
element of the new sycl::id
instance is the result of an element-wise
OP
operator between the lhs
size_t
and each element of the
rhs
sycl::range
. If the operator returns a bool
,
the result is the cast to size_t
.
id operatorOP(const sycl::id& rhs);
Where OP
is: unary +
, unary -
.
Constructs and returns a new instance of the sycl::id
class template
with the same dimensionality as the rhs
id, where each element
of the new sycl::id
instance is the result of an element-wise
OP
operator on the rhs
id.
id& operatorOP(sycl::id& rhs);
Where OP
is: prefix ++
, prefix --
.
Assigns each element of the rhs
id instance with the result of an
element-wise OP
operator on each element of the rhs
id
and returns this sycl::id
.
id operatorOP(sycl::id& lhs, int);
Where OP
is: postfix ++
, postfix --
.
Make a copy of the lhs
id. Assigns each element of the lhs
id
instance with the result of an element-wise OP
operator on each element
of the lhs
id. Then return the initial copy of the sycl::id
.