File tree Expand file tree Collapse file tree 4 files changed +1
-13
lines changed
dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions Expand file tree Collapse file tree 4 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 3434// ===---------------------------------------------------------------------===//
3535
3636#pragma once
37+ #include < cmath>
3738#include < cstddef>
3839#include < cstdint>
3940#include < type_traits>
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_and
5454
5555using dpctl::tensor::ssize_t ;
5656namespace td_ns = dpctl::tensor::type_dispatch;
57- namespace tu_ns = dpctl::tensor::type_utils;
5857
5958template <typename argT1, typename argT2, typename resT>
6059struct BitwiseAndFunctor
@@ -67,8 +66,6 @@ struct BitwiseAndFunctor
6766
6867 resT operator ()(const argT1 &in1, const argT2 &in2) const
6968 {
70- using tu_ns::convert_impl;
71-
7269 if constexpr (std::is_same_v<resT, bool >) {
7370 return in1 && in2;
7471 }
@@ -296,8 +293,6 @@ struct BitwiseAndInplaceFunctor
296293
297294 void operator ()(resT &res, const argT &in) const
298295 {
299- using tu_ns::convert_impl;
300-
301296 if constexpr (std::is_same_v<resT, bool >) {
302297 res = res && in;
303298 }
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_or
5454
5555using dpctl::tensor::ssize_t ;
5656namespace td_ns = dpctl::tensor::type_dispatch;
57- namespace tu_ns = dpctl::tensor::type_utils;
5857
5958template <typename argT1, typename argT2, typename resT>
6059struct BitwiseOrFunctor
@@ -67,8 +66,6 @@ struct BitwiseOrFunctor
6766
6867 resT operator ()(const argT1 &in1, const argT2 &in2) const
6968 {
70- using tu_ns::convert_impl;
71-
7269 if constexpr (std::is_same_v<resT, bool >) {
7370 return in1 || in2;
7471 }
@@ -296,8 +293,6 @@ struct BitwiseOrInplaceFunctor
296293
297294 void operator ()(resT &res, const argT &in) const
298295 {
299- using tu_ns::convert_impl;
300-
301296 if constexpr (std::is_same_v<resT, bool >) {
302297 res = res || in;
303298 }
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_xor
5454
5555using dpctl::tensor::ssize_t ;
5656namespace td_ns = dpctl::tensor::type_dispatch;
57- namespace tu_ns = dpctl::tensor::type_utils;
5857
5958template <typename argT1, typename argT2, typename resT>
6059struct BitwiseXorFunctor
@@ -297,8 +296,6 @@ struct BitwiseXorInplaceFunctor
297296
298297 void operator ()(resT &res, const argT &in) const
299298 {
300- using tu_ns::convert_impl;
301-
302299 if constexpr (std::is_same_v<resT, bool >) {
303300 res = (res != in);
304301 }
You can’t perform that action at this time.
0 commit comments