dpnp
dpnp copied to clipboard
Data Parallel Extension for NumPy
The following example works for `dpnp.linspace` and `dpnp.logspace` but not for `dpnp.geomspace`. ```python >>> import dpnp >>> x=dpnp.array([2,3,4,5], device="gpu") >>> dpnp.linspace(1, x[2:4], 4, device="cpu") # array([[1. , 1. ], #...
It is not intended for the merge. - [ ] Have you provided a meaningful PR description? - [ ] Have you added a test, reproducer or referred to issue...
In the test suite, the result arrays from `dpnp` and `numpy` were compared, but their shapes were not explicitly checked for equality. As a result, tests could pass even if...
More or less identical to NumPy issue: https://github.com/numpy/numpy/issues/23286 ```python import dpnp a = dpnp.array([0., np.nan, 2., np.nan, 2., 1., 0., 1., 2., 0.]) print(dpnp.unique(a, equal_nan=True, axis=0)) # [ 0. 1....
The bellow command to run dpnp tests causes the issue: ```bash $ DPNP_TEST_ALL_INT_TYPES= python -m pytest -ra -x --pyargs dpnp.tests ... /localdisk/work/antonvol/soft/miniforge3/envs/test_issue/lib/python3.12/site-packages/dpnp/tests/test_absolute.py:7: in from .helper import ( /localdisk/work/antonvol/soft/miniforge3/envs/test_issue/lib/python3.12/site-packages/dpnp/tests/helper.py:10: in from...
The below example behaves differently in numpy and dpnp: ```python import dpnp, numpy dpnp.__version__ # Out: '0.17.0dev6+6.g5b3beb35ee4' numpy.__version__ # Out: '2.2.2' a = dpnp.array([[1, 2], [3, 4]]) dpnp.var(a, dtype='i2') ---------------------------------------------------------------------------...
There is a discrepancy in the output shape of the `linspace` function between `numpy` and `dpnp`. Here is the code snippet to reproduce the issue: ```python import dpnp, numpy numpy.linspace(0,...
revert changes made in #2518 - [x] Have you provided a meaningful PR description? - [ ] Have you added a test, reproducer or referred to an issue with a...
This PR removes `dpnp.asfarray()` to align with NumPy>=2.0 where this function was removed ([Release Notes Numpy 2.0](https://numpy.org/doc/2.0/release/2.0.0-notes.html)) Use `dpnp.asarray(dtype=...)` instead - [X] Have you provided a meaningful PR description? -...
The PR updates cmake files for DPC++, oneMKL, oneDPL and TBB components with 2025.3 release changes. - [x] Have you provided a meaningful PR description? - [ ] Have you...