Skip to content

Commit b1aed58

Browse files
Merge master into impl_lu_solve_2D
2 parents 687006f + d7edd4f commit b1aed58

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+929
-849
lines changed

.github/workflows/check-onemath.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
build-with-oneapi-env: 'environments/build_with_oneapi.yml'
1616
dpctl-pkg-env: 'environments/dpctl_pkg.yml'
1717
oneapi-pkgs-env: 'environments/oneapi_pkgs.yml'
18+
test-pkg-env: 'environments/test.yml'
1819
test-env-name: 'test_onemath'
1920
rerun-tests-on-failure: 'true'
2021
rerun-tests-max-attempts: 2
@@ -49,7 +50,10 @@ jobs:
4950

5051
- name: Merge conda env files
5152
run: |
52-
conda-merge ${{ env.dpctl-pkg-env }} ${{ env.oneapi-pkgs-env }} ${{ env.build-with-oneapi-env }} > ${{ env.environment-file }}
53+
conda-merge ${{ env.dpctl-pkg-env }} \
54+
${{ env.oneapi-pkgs-env }} \
55+
${{ env.build-with-oneapi-env }} \
56+
${{ env.test-pkg-env }} > ${{ env.environment-file }}
5357
cat ${{ env.environment-file }}
5458
5559
- name: Upload artifact

.github/workflows/cron-run-tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ jobs:
8484
id: install_dpnp
8585
continue-on-error: true
8686
run: |
87-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest ${{ env.channels-list }}
87+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest scipy ${{ env.channels-list }}
8888
8989
- name: ReInstall dpnp
9090
if: steps.install_dpnp.outcome == 'failure'
9191
run: |
92-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest ${{ env.channels-list }}
92+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} pytest scipy ${{ env.channels-list }}
9393
9494
- name: List installed packages
9595
run: mamba list

.github/workflows/generate_coverage.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
environment-file: 'environments/environment.yml'
2626
build-with-oneapi-env: 'environments/build_with_oneapi.yml'
2727
coverage-env: 'environments/coverage.yml'
28+
test-pkg-env: 'environments/test.yml'
2829
oneapi-pkgs-env: ''
2930
# Enable env when it's required to use only conda packages without OneAPI installation
3031
# oneapi-pkgs-env: '${{ github.workspace }}/environments/oneapi_pkgs.yml'
@@ -73,7 +74,10 @@ jobs:
7374

7475
- name: Merge conda env files
7576
run: |
76-
conda-merge ${{ env.build-with-oneapi-env }} ${{ env.coverage-env }} ${{ env.oneapi-pkgs-env }} > ${{ env.environment-file }}
77+
conda-merge ${{ env.build-with-oneapi-env }} \
78+
${{ env.coverage-env }} \
79+
${{ env.oneapi-pkgs-env }} \
80+
${{ env.test-pkg-env }} > ${{ env.environment-file }}
7781
cat ${{ env.environment-file }}
7882
7983
- name: Setup miniconda

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ repos:
113113
"--disable=redefined-builtin",
114114
"--disable=unused-wildcard-import"
115115
]
116-
files: '^dpnp/(dpnp_iface.*|fft|linalg|dpnp_array)'
116+
files: '^dpnp/(dpnp_iface.*|fft|linalg|special|dpnp_array)'
117117
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
118118
rev: v2.15.0
119119
hooks:

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
* Aligned the license expression with `PEP-639` [#2511](https://github.com/IntelPython/dpnp/pull/2511)
3030
* Bumped oneMKL version up to `v0.8` [#2514](https://github.com/IntelPython/dpnp/pull/2514)
3131
* Removed the use of class template argument deduction for alias template to conform to the C++17 standard [#2517](https://github.com/IntelPython/dpnp/pull/2517)
32-
* Changed th order of individual FFTs over `axes` for `dpnp.fft.irfftn` to be in forward order [#2524](https://github.com/IntelPython/dpnp/pull/2524)
32+
* Changed the order of individual FFTs over `axes` for `dpnp.fft.irfftn` to be in forward order [#2524](https://github.com/IntelPython/dpnp/pull/2524)
3333
* Replaced the use of `numpy.testing.suppress_warnings` with appropriate calls from the warnings module [#2529](https://github.com/IntelPython/dpnp/pull/2529)
3434
* Improved documentations of `dpnp.ndarray` class and added a page with description of supported constants [#2422](https://github.com/IntelPython/dpnp/pull/2422)
3535
* Updated `dpnp.size` to accept tuple of ints for `axes` argument [#2536](https://github.com/IntelPython/dpnp/pull/2536)
@@ -41,6 +41,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4141
* Refactored backend implementation of `dpnp.linalg.solve` to use oneMKL LAPACK `gesv` directly [#2558](https://github.com/IntelPython/dpnp/pull/2558)
4242
* Improved performance of `dpnp.isclose` function by implementing a dedicated kernel for scalar `rtol` and `atol` arguments [#2540](https://github.com/IntelPython/dpnp/pull/2540)
4343
* Extended `dpnp.pad` to support `pad_width` keyword as a dictionary [#2535](https://github.com/IntelPython/dpnp/pull/2535)
44+
* Redesigned `dpnp.erf` function through pybind11 extension of OneMKL call or dedicated kernel in `ufunc` namespace [#2551](https://github.com/IntelPython/dpnp/pull/2551)
45+
* Improved performance of batched implementation of `dpnp.linalg.det` and `dpnp.linalg.slogdet` [#2572](https://github.com/IntelPython/dpnp/pull/2572)
4446

4547
### Deprecated
4648

conda-recipe/meta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ test:
6363
requires:
6464
- pytest
6565
- setuptools
66+
- scipy
6667

6768
about:
6869
home: https://github.com/IntelPython/dpnp

doc/reference/special.rst

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
Special Functions
2-
=================
1+
.. currentmodule:: dpnp.special
32

4-
.. https://docs.scipy.org/doc/scipy/reference/special.html
3+
Special functions (:mod:`dpnp.special`)
4+
=======================================
55

6-
Error Function
7-
--------------
6+
.. Hint:: `SciPy API Reference: Special functions (scipy.special) <https://docs.scipy.org/doc/scipy/reference/special.html>`_
7+
8+
Error function and Fresnel integrals
9+
------------------------------------
810

911
.. autosummary::
1012
:toctree: generated/
1113
:nosignatures:
1214

13-
dpnp.erf
14-
dpnp.erfc
15-
dpnp.erfcx
16-
dpnp.erfinv
17-
dpnp.erfcinv
15+
erf
16+
erfc
17+
erfcx
18+
erfi
19+
erfinv
20+
erfcinv

dpnp/backend/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
set(DPNP_SRC
2727
kernels/dpnp_krnl_arraycreation.cpp
2828
kernels/dpnp_krnl_common.cpp
29-
kernels/dpnp_krnl_elemwise.cpp
3029
kernels/dpnp_krnl_mathematical.cpp
3130
kernels/dpnp_krnl_random.cpp
3231
kernels/dpnp_krnl_sorting.cpp

dpnp/backend/extensions/ufunc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ set(_elementwise_sources
2727
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/bitwise_count.cpp
2828
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/common.cpp
2929
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/degrees.cpp
30+
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/erf.cpp
3031
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/fabs.cpp
3132
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/fix.cpp
3233
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/float_power.cpp

dpnp/backend/extensions/ufunc/elementwise_functions/common.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727

2828
#include "bitwise_count.hpp"
2929
#include "degrees.hpp"
30+
#include "erf.hpp"
3031
#include "fabs.hpp"
3132
#include "fix.hpp"
3233
#include "float_power.hpp"
@@ -57,6 +58,7 @@ void init_elementwise_functions(py::module_ m)
5758
{
5859
init_bitwise_count(m);
5960
init_degrees(m);
61+
init_erf(m);
6062
init_fabs(m);
6163
init_fix(m);
6264
init_float_power(m);

0 commit comments

Comments
 (0)