File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
dpctl/tensor/libtensor/include/utils Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,17 @@ struct is_complex : public std::false_type
41
41
};
42
42
43
43
template <typename T>
44
- struct is_complex <T, std::enable_if_t <std::is_same_v<std::remove_cv_t <T>, std::complex<sycl::half>> ||
45
- std::is_same_v<std::remove_cv_t <T>, std::complex<float >> ||
46
- std::is_same_v<std::remove_cv_t <T>, std::complex<double >>>>
47
- : public std::true_type
48
- {
49
- };
44
+ struct is_complex <
45
+ T,
46
+ std::enable_if_t <
47
+ std::is_same_v<std::remove_cv_t <T>, std::complex<sycl::half>> ||
48
+ std::is_same_v<std::remove_cv_t <T>, std::complex<float >> ||
49
+ std::is_same_v<std::remove_cv_t <T>, std::complex<double >>>>
50
+ : public std::true_type
51
+ {
52
+ };
50
53
51
- template <typename T>
52
- constexpr bool is_complex_v = is_complex<T>::value;
54
+ template <typename T> constexpr bool is_complex_v = is_complex<T>::value;
53
55
54
56
template <typename dstTy, typename srcTy> dstTy convert_impl (const srcTy &v)
55
57
{
You can’t perform that action at this time.
0 commit comments