Binary operator for elementwise logical XOR computation.
More...
#include <logical_xor.hpp>
|
| static constexpr int | complexity () |
| | Estimate the complexity of operator. More...
|
| |
| static constexpr bool | apply (const T &lhs, const T &rhs) noexcept |
| | Apply the unary operator on lhs and rhs. More...
|
| |
| template<typename X , typename Y , typename YY > |
| static auto | gpu_compute_hint (const X &x, const Y &y, YY &yy) noexcept |
| | Compute the result of the operation using the GPU. More...
|
| |
| template<typename X , typename Y , typename YY > |
| static YY & | gpu_compute (const X &x, const Y &y, YY &yy) noexcept |
| | Compute the result of the operation using the GPU. More...
|
| |
| static std::string | desc () noexcept |
| | Returns a textual representation of the operator. More...
|
| |
|
|
static constexpr bool | linear = true |
| | Indicates if the operator is linear or not.
|
| |
|
static constexpr bool | thread_safe = true |
| | Indicates if the operator is thread safe or not.
|
| |
|
static constexpr bool | desc_func = false |
| | Indicates if the description must be printed as function.
|
| |
| template<vector_mode_t V> |
| static constexpr bool | vectorizable = false |
| | Indicates if the expression is vectorizable using the given vector mode. More...
|
| |
|
template<typename L , typename R > |
| static constexpr bool | gpu_computable = impl::egblas::has_bxor |
| | Indicates if the operator can be computed on GPU.
|
| |
template<typename T>
struct etl::logical_xor_binary_op< T >
Binary operator for elementwise logical XOR computation.
◆ apply()
Apply the unary operator on lhs and rhs.
- Parameters
-
| lhs | The left hand side value on which to apply the operator |
| rhs | The right hand side value on which to apply the operator |
- Returns
- The result of applying the binary operator on lhs and rhs
◆ complexity()
Estimate the complexity of operator.
- Returns
- An estimation of the complexity of the operator
◆ desc()
Returns a textual representation of the operator.
- Returns
- a string representing the operator
◆ gpu_compute()
template<typename T >
template<typename X , typename Y , typename YY >
Compute the result of the operation using the GPU.
- Parameters
-
| x | The expression of the unary operation |
| y | The expression into which to store the reuslt |
◆ gpu_compute_hint()
template<typename T >
template<typename X , typename Y , typename YY >
Compute the result of the operation using the GPU.
- Parameters
-
| x | The expression of the unary operation |
- Returns
- The result of applying the unary operator on x. The result must be a GPU computed expression.
◆ vectorizable
template<typename T >
template<vector_mode_t V>
Indicates if the expression is vectorizable using the given vector mode.
- Template Parameters
-
The documentation for this struct was generated from the following file: