Skip to content

Commit

Permalink
abs -> eve::abs
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Dec 13, 2023
1 parent 335bcab commit ae5b47c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/kyosu/types/impl/bessel/cb_hn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace kyosu::_
template<eve::integral_scalar_value N, typename Z, typename R> KYOSU_FORCEINLINE
auto cb_h12n(N n, Z z, R & h1s, R& h2s) noexcept
{
auto an = abs(n);
auto an = eve::abs(n);
EVE_ASSERT(std::size(h1s) > size_t(an), "not room enough in h1s");
EVE_ASSERT(std::size(h2s) > size_t(an), "not room enough in h2s");
cb_jyn(n, z, h1s, h2s);
Expand Down
4 changes: 2 additions & 2 deletions include/kyosu/types/impl/bessel/cb_ikn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ namespace kyosu::_
auto dispatch(eve::tag_of<kyosu::cyl_bessel_ikn>, N n, Z z, R1& is, R2& ks) noexcept
requires(concepts::complex<Z>)
{
EVE_ASSERT(N(size(is)) > abs(n), "not room enough in is");
EVE_ASSERT(N(size(ks)) > abs(n), "not room enough in ks");
EVE_ASSERT(N(size(is)) > eve::abs(n), "not room enough in is");
EVE_ASSERT(N(size(ks)) > eve::abs(n), "not room enough in ks");
return cb_ikn(n, z, is, ks);
}
}
4 changes: 2 additions & 2 deletions include/kyosu/types/impl/bessel/cb_jyn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ namespace kyosu::_
// Chapter II, equation (3); or from Equation 9.1.12 of
// M. Abramowitz, I. A. Stegun 'Handbook of Mathematical
// Functions'.
// good for abs(z) < 12
// good for eve::abs(z) < 12
auto eps2 = eve::sqr(eve::eps(eve::as<e_t>()));
auto j0 = eve::one((eve::as<Z>()));
auto sm = j0;
Expand Down Expand Up @@ -186,7 +186,7 @@ namespace kyosu::_
// Chapter II, equation (3); or from Equation 9.1.12 of
// M. Abramowitz, I. A. Stegun 'Handbook of Mathematical
// Functions'.
// good for abs(z) < 12
// good for eve::abs(z) < 12
auto eps2 = sqr(eve::eps(eve::as<e_t>()));
auto j1 = complex(eve::one((eve::as<e_t>())));
auto sm = j1;
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/types/impl/besselr/cb_jyr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ namespace kyosu::_
using u_t = eve::underlying_type_t<Z>;
auto eps = 16*eve::eps(as<u_t>());
auto twoopi = eve::two_o_pi(as<u_t>());
auto az = abs(z);
auto az = eve::abs(z);
auto z1 = z;
auto z2 = sqr(z);
auto v1 = inc(v0); // 1 < v1 < 2
Expand Down

0 comments on commit ae5b47c

Please sign in to comment.