-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
85 changed files
with
4,539 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
//====================================================================================================================== | ||
/* | ||
Kyosu - Complex Without Complexes | ||
Copyright: KYOSU Contributors & Maintainers | ||
SPDX-License-Identifier: BSL-1.0 | ||
*/ | ||
//====================================================================================================================== | ||
#pragma once | ||
|
||
#include <kyosu/details/invoke.hpp> | ||
#include <eve/module/math.hpp> | ||
|
||
namespace kyosu::tags | ||
{ | ||
struct callable_sinhc: eve::elementwise | ||
{ | ||
using callable_tag_type = callable_sinhc; | ||
|
||
KYOSU_DEFERS_CALLABLE(sinhc_); | ||
|
||
template<eve::floating_ordered_value T> | ||
static KYOSU_FORCEINLINE auto deferred_call(auto, T const& v) noexcept { return eve::sinhc(v); } | ||
|
||
template<typename T> | ||
KYOSU_FORCEINLINE auto operator()(T const& target) const noexcept -> decltype(eve::tag_invoke(*this, target)) | ||
{ | ||
return eve::tag_invoke(*this, target); | ||
} | ||
|
||
template<typename... T> | ||
eve::unsupported_call<callable_sinhc(T&&...)> operator()(T&&... x) const | ||
requires(!requires { eve::tag_invoke(*this, KYOSU_FWD(x)...); }) = delete; | ||
}; | ||
} | ||
|
||
namespace kyosu | ||
{ | ||
//====================================================================================================================== | ||
//! @addtogroup functions | ||
//! @{ | ||
//! @var sinhc | ||
//! @brief Computes the hyperbolic sine cardinal of the argument. | ||
//! | ||
//! **Defined in Header** | ||
//! | ||
//! @code | ||
//! #include <kyosu/functions.hpp> | ||
//! @endcode | ||
//! | ||
//! @groupheader{Callable Signatures} | ||
//! | ||
//! @code | ||
//! namespace kyosu | ||
//! { | ||
//! template<kyosu::concepts::cayley_dickson T> constexpr auto sinhc(T z) noexcept; | ||
//! template<eve::floating_ordered_value T> constexpr auto sinhc(T z) noexcept; | ||
//! } | ||
//! @endcode | ||
//! | ||
//! **Parameters** | ||
//! | ||
//! * `z`: Value to process. | ||
//! | ||
//! **Return value** | ||
//! | ||
//! Returns the hyperbolic sine cardinal of the argument. | ||
//! | ||
//! @groupheader{Example} | ||
//! | ||
//! @godbolt{doc/sinhc.cpp} | ||
//! @} | ||
//====================================================================================================================== | ||
inline constexpr tags::callable_sinhc sinhc = {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
//====================================================================================================================== | ||
/* | ||
Kyosu - Complex Without Complexes | ||
Copyright: KYOSU Contributors & Maintainers | ||
SPDX-License-Identifier: BSL-1.0 | ||
*/ | ||
//====================================================================================================================== | ||
#pragma once | ||
|
||
#include <kyosu/details/invoke.hpp> | ||
#include <eve/module/bessel.hpp> | ||
|
||
namespace kyosu::tags | ||
{ | ||
struct callable_sph_bessel_h1_0: eve::elementwise | ||
{ | ||
using callable_tag_type = callable_sph_bessel_h1_0; | ||
|
||
KYOSU_DEFERS_CALLABLE(sph_bessel_h1_0_); | ||
|
||
template<eve::floating_ordered_value T> | ||
static KYOSU_FORCEINLINE auto deferred_call(auto, T const& z) noexcept | ||
{ | ||
return complex(eve::sph_bessel_j0(z), eve::sph_bessel_y0(z)); | ||
} | ||
|
||
template<typename T> | ||
KYOSU_FORCEINLINE auto operator()(T const& target1) const noexcept | ||
-> decltype(eve::tag_invoke(*this, target1)) | ||
{ | ||
return eve::tag_invoke(*this, target1); | ||
} | ||
|
||
template<typename... T> | ||
eve::unsupported_call<callable_sph_bessel_h1_0(T&&...)> operator()(T&&... x) const | ||
requires(!requires { eve::tag_invoke(*this, KYOSU_FWD(x)...); }) = delete; | ||
}; | ||
} | ||
|
||
namespace kyosu | ||
{ | ||
//====================================================================================================================== | ||
//! @addtogroup functions | ||
//! @{ | ||
//! @var sph_bessel_h1_0 | ||
//! @brief Computes the spherical Bessel/hankel functions of the third kind, | ||
//! \f$ h_0^{(1)}(z) = j_1(z)+iy_1(z)\f$. | ||
//! | ||
//! @code | ||
//! #include <kyosu/functions.hpp> | ||
//! @endcode | ||
//! | ||
//! @groupheader{Callable Signatures} | ||
//! | ||
//! @code | ||
//! namespace kyosu | ||
//! { | ||
//! template<kyosu::concepts::cayley_dickson T> constexpr auto sph_bessel_h1_0(int n, T z) noexcept; | ||
//! template<eve::floating_ordered_value T> constexpr auto sph_bessel_h1_0(int n, T z) noexcept; | ||
//! } | ||
//! @endcode | ||
//! | ||
//! **Parameters** | ||
//! | ||
//! * `z`: Value to process. | ||
//! | ||
//! **Return value** | ||
//! | ||
//! * returns \f$h_0^{(1)}(z)\f$. | ||
//! | ||
//! @groupheader{Example} | ||
//! | ||
//! @godbolt{doc/sph_bessel_h1_0.cpp} | ||
//! @} | ||
//====================================================================================================================== | ||
inline constexpr tags::callable_sph_bessel_h1_0 sph_bessel_h1_0 = {}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
//====================================================================================================================== | ||
/* | ||
Kyosu - Complex Without Complexes | ||
Copyright: KYOSU Contributors & Maintainers | ||
SPDX-License-Identifier: BSL-1.0 | ||
*/ | ||
//====================================================================================================================== | ||
#pragma once | ||
|
||
#include <kyosu/details/invoke.hpp> | ||
#include <eve/module/bessel.hpp> | ||
|
||
namespace kyosu::tags | ||
{ | ||
struct callable_sph_bessel_h1_1: eve::elementwise | ||
{ | ||
using callable_tag_type = callable_sph_bessel_h1_1; | ||
|
||
KYOSU_DEFERS_CALLABLE(sph_bessel_h1_1_); | ||
|
||
template<eve::floating_ordered_value T> | ||
static KYOSU_FORCEINLINE auto deferred_call(auto, T const& z) noexcept | ||
{ | ||
return complex(eve::sph_bessel_j1(z), eve::sph_bessel_y1(z)); | ||
} | ||
|
||
template<typename T> | ||
KYOSU_FORCEINLINE auto operator()(T const& target1) const noexcept | ||
-> decltype(eve::tag_invoke(*this, target1)) | ||
{ | ||
return eve::tag_invoke(*this, target1); | ||
} | ||
|
||
template<typename... T> | ||
eve::unsupported_call<callable_sph_bessel_h1_1(T&&...)> operator()(T&&... x) const | ||
requires(!requires { eve::tag_invoke(*this, KYOSU_FWD(x)...); }) = delete; | ||
}; | ||
} | ||
|
||
namespace kyosu | ||
{ | ||
//====================================================================================================================== | ||
//! @addtogroup functions | ||
//! @{ | ||
//! @var sph_bessel_h1_1 | ||
//! @brief Computes the spherical Bessel/hankel functions of the third kind, | ||
//! \f$ h_1^{(1)}(z) = j_1(z)+iy_1(z)\f$. | ||
//! | ||
//! @code | ||
//! #include <kyosu/functions.hpp> | ||
//! @endcode | ||
//! | ||
//! @groupheader{Callable Signatures} | ||
//! | ||
//! @code | ||
//! namespace kyosu | ||
//! { | ||
//! template<kyosu::concepts::cayley_dickson T> constexpr auto sph_bessel_h1_1(int n, T z) noexcept; | ||
//! template<eve::floating_ordered_value T> constexpr auto sph_bessel_h1_1(int n, T z) noexcept; | ||
//! } | ||
//! @endcode | ||
//! | ||
//! **Parameters** | ||
//! | ||
//! * `z`: Value to process. | ||
//! | ||
//! **Return value** | ||
//! | ||
//! * returns \f$h_1^{(1)}(z)\f$. | ||
//! | ||
//! @groupheader{Example} | ||
//! | ||
//! @godbolt{doc/sph_bessel_h1_1.cpp} | ||
//! @} | ||
//====================================================================================================================== | ||
inline constexpr tags::callable_sph_bessel_h1_1 sph_bessel_h1_1 = {}; | ||
} |
Oops, something went wrong.