diff --git a/CHANGELOG.md b/CHANGELOG.md index e2ecf1684be..7ab65f4381e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ This release changes the license from `BSD-2-Clause` to `BSD-3-Clause`. * Added the docstrings to `dpnp.linalg.LinAlgError` exception [#2613](https://github.com/IntelPython/dpnp/pull/2613) * Added implementation of `dpnp.linalg.lu_solve` for batch inputs (SciPy-compatible) [#2619](https://github.com/IntelPython/dpnp/pull/2619) * Added `dpnp.exceptions` submodule to aggregate the generic exceptions used by dpnp [#2616](https://github.com/IntelPython/dpnp/pull/2616) +* Added implementation of `dpnp.scipy.special.erfcx` [#2596](https://github.com/IntelPython/dpnp/pull/2596) ### Changed @@ -44,10 +45,10 @@ This release is compatible with NumPy 2.3.3. * Added `timeout-minutes` property to GitHub jobs [#2526](https://github.com/IntelPython/dpnp/pull/2526) * Added implementation of `dpnp.ndarray.data` and `dpnp.ndarray.data.ptr` attributes [#2521](https://github.com/IntelPython/dpnp/pull/2521) * Added `dpnp.ndarray.__contains__` method [#2534](https://github.com/IntelPython/dpnp/pull/2534) -* Added implementation of `dpnp.linalg.lu_factor` (SciPy-compatible) [#2557](https://github.com/IntelPython/dpnp/pull/2557), [#2565](https://github.com/IntelPython/dpnp/pull/2565) +* Added implementation of `dpnp.scipy.linalg.lu_factor` (SciPy-compatible) [#2557](https://github.com/IntelPython/dpnp/pull/2557), [#2565](https://github.com/IntelPython/dpnp/pull/2565) * Added implementation of `dpnp.piecewise` [#2550](https://github.com/IntelPython/dpnp/pull/2550) -* Added implementation of `dpnp.linalg.lu_solve` for 2D inputs (SciPy-compatible) [#2575](https://github.com/IntelPython/dpnp/pull/2575) -* Added implementation of `dpnp.special.erfc` [#2588](https://github.com/IntelPython/dpnp/pull/2588) +* Added implementation of `dpnp.scipy.linalg.lu_solve` for 2D inputs (SciPy-compatible) [#2575](https://github.com/IntelPython/dpnp/pull/2575) +* Added implementation of `dpnp.scipy.special.erfc` [#2588](https://github.com/IntelPython/dpnp/pull/2588) * Added `dpnp.scipy` submodule to aggregate new SciPy-compatible functions from `linalg` and `special` namespaces [#2603](https://github.com/IntelPython/dpnp/pull/2603) ### Changed diff --git a/doc/reference/scipy_special.rst b/doc/reference/scipy_special.rst index 0df23dbd6ce..603f7bfebb0 100644 --- a/doc/reference/scipy_special.rst +++ b/doc/reference/scipy_special.rst @@ -15,6 +15,5 @@ Error function and Fresnel integrals erf erfc erfcx - erfi erfinv erfcinv diff --git a/dpnp/backend/extensions/ufunc/elementwise_functions/erf_funcs.cpp b/dpnp/backend/extensions/ufunc/elementwise_functions/erf_funcs.cpp index 29fe5e773ed..fbd2ac21198 100644 --- a/dpnp/backend/extensions/ufunc/elementwise_functions/erf_funcs.cpp +++ b/dpnp/backend/extensions/ufunc/elementwise_functions/erf_funcs.cpp @@ -212,6 +212,7 @@ static void populate(py::module_ m, MACRO_DEFINE_IMPL(erf, Erf); MACRO_DEFINE_IMPL(erfc, Erfc); +MACRO_DEFINE_IMPL(erfcx, Erfcx); } // namespace impl void init_erf_funcs(py::module_ m) @@ -231,5 +232,9 @@ void init_erf_funcs(py::module_ m) impl::populate( m, "_erfc", "", impl::erfc_contig_dispatch_vector, impl::erfc_strided_dispatch_vector); + + impl::populate( + m, "_erfcx", "", impl::erfcx_contig_dispatch_vector, + impl::erfcx_strided_dispatch_vector); } } // namespace dpnp::extensions::ufunc diff --git a/dpnp/backend/extensions/vm/erf_funcs.cpp b/dpnp/backend/extensions/vm/erf_funcs.cpp index 199ed0e7d55..c443a773775 100644 --- a/dpnp/backend/extensions/vm/erf_funcs.cpp +++ b/dpnp/backend/extensions/vm/erf_funcs.cpp @@ -133,6 +133,7 @@ using ew_cmn_ns::unary_contig_impl_fn_ptr_t; MACRO_DEFINE_IMPL(erf, Erf); MACRO_DEFINE_IMPL(erfc, Erfc); +MACRO_DEFINE_IMPL(erfcx, Erfcx); template