28 template <vector_mode_t V>
35 static constexpr
bool gpu_computable = (is_complex_single_t<T> && impl::egblas::has_cconj) || (is_complex_double_t<T> && impl::egblas::has_zconj);
50 static constexpr T
apply(
const T& x) noexcept {
61 template <
typename X,
typename Y>
68 impl::egblas::conj(
etl::size(y), alpha, t1.gpu_memory(), 1, t2.gpu_memory(), 1);
79 template <
typename X,
typename Y>
84 impl::egblas::conj(
etl::size(y), alpha, t1.gpu_memory(), 1, y.gpu_memory(), 1);
96 static std::string
desc() noexcept {
static Y & gpu_compute(const X &x, Y &y) noexcept
Compute the result of the operation using the GPU.
Definition: conj.hpp:80
static constexpr bool gpu_computable
Indicates if the operator can be computed on GPU.
Definition: conj.hpp:35
decltype(auto) select_smart_gpu_compute(X &x, Y &y)
Compute the expression into a representation that is GPU up to date and possibly store this represent...
Definition: helpers.hpp:434
static auto gpu_compute_hint(const X &x, Y &y) noexcept
Compute the result of the operation using the GPU.
Definition: conj.hpp:62
Root namespace for the ETL library.
Definition: adapter.hpp:15
static constexpr T apply(const T &x) noexcept
Apply the unary operator on x.
Definition: conj.hpp:50
static constexpr bool thread_safe
Indicates if the operator is thread safe or not.
Definition: conj.hpp:21
Unary operation computing the conjugate value of complex number.
Definition: conj.hpp:19
std::complex< T > get_conj(const std::complex< T > &c)
Returns the conjugate of the given complex number.
Definition: complex.hpp:555
decltype(auto) force_temporary_gpu_dim_only(E &&expr)
Force a temporary out of the expression, without copying its content.
Definition: temporary.hpp:223
static constexpr bool vectorizable
Indicates if the expression is vectorizable using the given vector mode.
Definition: conj.hpp:29
constexpr size_t size(const E &expr) noexcept
Returns the size of the given ETL expression.
Definition: helpers.hpp:108
decltype(auto) smart_gpu_compute_hint(E &expr, Y &y)
Compute the expression into a representation that is GPU up to date.
Definition: helpers.hpp:368
static constexpr int complexity()
Estimate the complexity of operator.
Definition: conj.hpp:41
static std::string desc() noexcept
Returns a textual representation of the operator.
Definition: conj.hpp:96
static constexpr bool linear
Indicates if the operator is linear.
Definition: conj.hpp:20
EGBLAS wrappers for the conj operation.