Skip to content

Commit 17a5f2e

Browse files
Clean up includes
1 parent 3f1a5f6 commit 17a5f2e

File tree

4 files changed

+1
-13
lines changed

4 files changed

+1
-13
lines changed

dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/atan2.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
//===---------------------------------------------------------------------===//
3535

3636
#pragma once
37+
#include <cmath>
3738
#include <cstddef>
3839
#include <cstdint>
3940
#include <type_traits>

dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/bitwise_and.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_and
5454

5555
using dpctl::tensor::ssize_t;
5656
namespace td_ns = dpctl::tensor::type_dispatch;
57-
namespace tu_ns = dpctl::tensor::type_utils;
5857

5958
template <typename argT1, typename argT2, typename resT>
6059
struct 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
}

dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/bitwise_or.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_or
5454

5555
using dpctl::tensor::ssize_t;
5656
namespace td_ns = dpctl::tensor::type_dispatch;
57-
namespace tu_ns = dpctl::tensor::type_utils;
5857

5958
template <typename argT1, typename argT2, typename resT>
6059
struct 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
}

dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/bitwise_xor.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ namespace dpctl::tensor::kernels::bitwise_xor
5454

5555
using dpctl::tensor::ssize_t;
5656
namespace td_ns = dpctl::tensor::type_dispatch;
57-
namespace tu_ns = dpctl::tensor::type_utils;
5857

5958
template <typename argT1, typename argT2, typename resT>
6059
struct 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
}

0 commit comments

Comments
 (0)