Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dpnp/tensor/_ctors.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _asarray_from_numpy_ndarray(
copy_q = normalize_queue_device(sycl_queue=None, device=sycl_queue)
if ary.dtype.char not in "?bBhHiIlLqQefdFD":
raise TypeError(
f"Numpy array of data type {ary.dtype} is not supported. "
f"NumPy array of data type {ary.dtype} is not supported. "
"Please convert the input to an array with numeric data type."
)
if dtype is None:
Expand Down
4 changes: 2 additions & 2 deletions dpnp/tensor/_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def set_print_options(
`"-"`, `"+"`, or `" "`.
Default: `"-"`.
numpy (bool, optional): If `True,` then before other specified print
options are set, a dictionary of Numpy's print options
options are set, a dictionary of NumPy's print options
will be used to initialize dpctl's print options.
Default: "False"
"""
Expand Down Expand Up @@ -412,7 +412,7 @@ def usm_ndarray_str(
Default: `"-"`.
numpy (bool, optional):
If `True,` then before other specified print
options are set, a dictionary of Numpy's print options
options are set, a dictionary of NumPy's print options
will be used to initialize dpctl's print options.
Default: "False"
separator (str, optional):
Expand Down
2 changes: 1 addition & 1 deletion dpnp/tests/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def is_intel_numpy():
Return True if Intel NumPy is used during testing.

The check is based on MKL backend name stored in Build Dependencies, where
in case of Intel Numpy there "mkl" is expected at the beginning of the name
in case of Intel NumPy there "mkl" is expected at the beginning of the name
for both BLAS and LAPACK (the full name is "mkl-dynamic-ilp64-iomp").

"""
Expand Down
2 changes: 1 addition & 1 deletion dpnp/tests/tensor/test_tensor_asarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def test_asarray_input_validation():
# buffer to usm_ndarray requires a copy
dpt.asarray(memoryview(np.arange(5)), copy=False)
with pytest.raises(ValueError):
# Numpy array to usm_ndarray requires a copy
# NumPy array to usm_ndarray requires a copy
dpt.asarray(np.arange(5), copy=False)
with pytest.raises(ValueError):
# Python sequence to usm_ndarray requires a copy
Expand Down
8 changes: 4 additions & 4 deletions dpnp/tests/test_fft.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,29 +500,29 @@ def test_0D(self, dtype):
a = dpnp.array(3, dtype=dtype) # 0-D input

# axes is None
# For 0-D array, stock Numpy and dpnp return input array
# For 0-D array, stock NumPy and dpnp return input array
# while Intel NumPy return a complex zero
result = dpnp.fft.fftn(a)
expected = a.asnumpy()
assert_dtype_allclose(result, expected)

# axes=()
# For 0-D array with axes=(), stock Numpy and dpnp return input array
# For 0-D array with axes=(), stock NumPy and dpnp return input array
# Intel NumPy does not support empty axes and raises an Error
result = dpnp.fft.fftn(a, axes=())
expected = a.asnumpy()
assert_dtype_allclose(result, expected)

# axes=(0,)
# For 0-D array with non-empty axes, stock Numpy and dpnp raise
# For 0-D array with non-empty axes, stock NumPy and dpnp raise
# IndexError, while Intel NumPy raises ZeroDivisionError
assert_raises(IndexError, dpnp.fft.fftn, a, axes=(0,))

@pytest.mark.parametrize("dtype", get_all_dtypes(no_none=True))
def test_empty_axes(self, dtype):
a = dpnp.ones((2, 3, 4), dtype=dtype)

# For axes=(), stock Numpy and dpnp return input array
# For axes=(), stock NumPy and dpnp return input array
# Intel NumPy does not support empty axes and raises an Error
result = dpnp.fft.fftn(a, axes=())
expected = a.asnumpy()
Expand Down
6 changes: 3 additions & 3 deletions dpnp/tests/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ def test_lstsq(self, a_shape, b_shape, dtype):

result = dpnp.linalg.lstsq(a_dp, b_dp)
# if rcond is not set, FutureWarning is given.
# By default Numpy uses None for calculations
# By default NumPy uses None for calculations
expected = numpy.linalg.lstsq(a_np, b_np, rcond=None)

for param_dp, param_np in zip(result, expected):
Expand All @@ -1838,7 +1838,7 @@ def test_lstsq_diff_type(self, a_dtype, b_dtype):
b_dp = dpnp.array(b_np)

# if rcond is not set, FutureWarning is given.
# By default Numpy uses None for calculations
# By default NumPy uses None for calculations
expected = numpy.linalg.lstsq(a_np, b_np, rcond=None)
result = dpnp.linalg.lstsq(a_dp, b_dp)

Expand All @@ -1859,7 +1859,7 @@ def test_lstsq_empty(self, m, n, nrhs, dtype):

result = dpnp.linalg.lstsq(a_dp, b_dp)
# if rcond is not set, FutureWarning is given.
# By default Numpy uses None for calculations
# By default NumPy uses None for calculations
expected = numpy.linalg.lstsq(a_np, b_np, rcond=None)

for param_dp, param_np in zip(result, expected):
Expand Down
Loading