File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
dpctl/tensor/libtensor/include/utils Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
33
* Fix warning in documentation generation caused by ` diff ` docstring [ gh-1855 ] ( https://github.com/IntelPython/dpctl/pull/1855 )
34
34
* Fix additional warnings when generating docs [ gh-1861 ] ( https://github.com/IntelPython/dpctl/pull/1861 )
35
35
* Add missing include of SYCL header to "math_utils.hpp" [ gh-1899 ] ( https://github.com/IntelPython/dpctl/pull/1899 )
36
+ * Add support of cv-qualifiers and sycl::half type in ` is_complex<T> ` helper [ gh-1900 ] ( https://github.com/IntelPython/dpctl/pull/1900 )
36
37
37
38
## [ 0.18.1] - Oct. 11, 2024
38
39
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 >>>>
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 >>>>
47
50
: public std::true_type
48
51
{
49
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