File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
dpctl/tensor/libtensor/include/kernels/elementwise_functions Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ using dpctl::tensor::ssize_t;
54
54
namespace td_ns = dpctl::tensor::type_dispatch;
55
55
56
56
using dpctl::tensor::type_utils::is_complex;
57
+ using dpctl::tensor::type_utils::is_complex_v;
57
58
58
59
template <typename argT, typename resT> struct ImagFunctor
59
60
{
@@ -70,7 +71,7 @@ template <typename argT, typename resT> struct ImagFunctor
70
71
71
72
resT operator ()(const argT &in) const
72
73
{
73
- if constexpr (is_complex <argT>::value ) {
74
+ if constexpr (is_complex_v <argT>) {
74
75
using realT = typename argT::value_type;
75
76
using sycl_complexT = typename exprm_ns::complex<realT>;
76
77
return exprm_ns::imag (sycl_complexT (in));
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ using dpctl::tensor::ssize_t;
54
54
namespace td_ns = dpctl::tensor::type_dispatch;
55
55
56
56
using dpctl::tensor::type_utils::is_complex;
57
+ using dpctl::tensor::type_utils::is_complex_v;
57
58
58
59
template <typename argT, typename resT> struct RealFunctor
59
60
{
@@ -70,7 +71,7 @@ template <typename argT, typename resT> struct RealFunctor
70
71
71
72
resT operator ()(const argT &in) const
72
73
{
73
- if constexpr (is_complex <argT>::value ) {
74
+ if constexpr (is_complex_v <argT>) {
74
75
using realT = typename argT::value_type;
75
76
using sycl_complexT = typename exprm_ns::complex<realT>;
76
77
return exprm_ns::real (sycl_complexT (in));
You can’t perform that action at this time.
0 commit comments