Skip to content

Commit 69ce776

Browse files
committed
Fix pre-commit
1 parent 6e22677 commit 69ce776

File tree

8 files changed

+10
-16
lines changed

8 files changed

+10
-16
lines changed

dpctl/tensor/libtensor/include/kernels/elementwise_functions/acos.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ template <typename argT, typename resT> struct AcosFunctor
116116
}
117117

118118
/* ordinary cases */
119-
return exprm_ns::acos(
120-
exprm_ns::complex<realT>(in)); // acos(in);
119+
return exprm_ns::acos(exprm_ns::complex<realT>(in)); // acos(in);
121120
}
122121
else {
123122
static_assert(std::is_floating_point_v<argT> ||

dpctl/tensor/libtensor/include/kernels/elementwise_functions/acosh.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ template <typename argT, typename resT> struct AcoshFunctor
120120
}
121121
else {
122122
/* ordinary cases */
123-
acos_in = exprm_ns::acos(
124-
exprm_ns::complex<realT>(in)); // acos(in);
123+
acos_in =
124+
exprm_ns::acos(exprm_ns::complex<realT>(in)); // acos(in);
125125
}
126126

127127
/* Now we calculate acosh(z) */

dpctl/tensor/libtensor/include/kernels/elementwise_functions/asinh.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ template <typename argT, typename resT> struct AsinhFunctor
119119
}
120120

121121
/* ordinary cases */
122-
return exprm_ns::asinh(
123-
exprm_ns::complex<realT>(in)); // asinh(in);
122+
return exprm_ns::asinh(exprm_ns::complex<realT>(in)); // asinh(in);
124123
}
125124
else {
126125
static_assert(std::is_floating_point_v<argT> ||

dpctl/tensor/libtensor/include/kernels/elementwise_functions/atan.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,7 @@ template <typename argT, typename resT> struct AtanFunctor
126126
return resT{atanh_im, atanh_re};
127127
}
128128
/* ordinary cases */
129-
return exprm_ns::atan(
130-
exprm_ns::complex<realT>(in)); // atan(in);
129+
return exprm_ns::atan(exprm_ns::complex<realT>(in)); // atan(in);
131130
}
132131
else {
133132
static_assert(std::is_floating_point_v<argT> ||

dpctl/tensor/libtensor/include/kernels/elementwise_functions/atanh.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ template <typename argT, typename resT> struct AtanhFunctor
120120
return resT{res_re, res_im};
121121
}
122122
/* ordinary cases */
123-
return exprm_ns::atanh(
124-
exprm_ns::complex<realT>(in)); // atanh(in);
123+
return exprm_ns::atanh(exprm_ns::complex<realT>(in)); // atanh(in);
125124
}
126125
else {
127126
static_assert(std::is_floating_point_v<argT> ||

dpctl/tensor/libtensor/include/kernels/elementwise_functions/cos.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ template <typename argT, typename resT> struct CosFunctor
8181
* real and imaginary parts of input are finite.
8282
*/
8383
if (in_re_finite && in_im_finite) {
84-
return exprm_ns::cos(
85-
exprm_ns::complex<realT>(in)); // cos(in);
84+
return exprm_ns::cos(exprm_ns::complex<realT>(in)); // cos(in);
8685
}
8786

8887
/*

dpctl/tensor/libtensor/include/kernels/elementwise_functions/sin.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ template <typename argT, typename resT> struct SinFunctor
7979
* real and imaginary parts of input are finite.
8080
*/
8181
if (in_re_finite && in_im_finite) {
82-
resT res = exprm_ns::sin(
83-
exprm_ns::complex<realT>(in)); // sin(in);
82+
resT res =
83+
exprm_ns::sin(exprm_ns::complex<realT>(in)); // sin(in);
8484
if (in_re == realT(0)) {
8585
res.real(sycl::copysign(realT(0), in_re));
8686
}

dpctl/tensor/libtensor/include/kernels/elementwise_functions/tanh.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ template <typename argT, typename resT> struct TanhFunctor
112112
return resT{q_nan, q_nan};
113113
}
114114
/* ordinary cases */
115-
return exprm_ns::tanh(
116-
exprm_ns::complex<realT>(in)); // tanh(in);
115+
return exprm_ns::tanh(exprm_ns::complex<realT>(in)); // tanh(in);
117116
}
118117
else {
119118
static_assert(std::is_floating_point_v<argT> ||

0 commit comments

Comments
 (0)