Skip to content
Open
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
20 changes: 10 additions & 10 deletions dpnp/dpnp_iface_histograms.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def bincount(x, weights=None, minlength=0):

For full documentation refer to :obj:`numpy.bincount`.

Warning
-------
Warnings
--------
This function synchronizes in order to calculate binning edges.
This may harm performance in some applications.

Expand Down Expand Up @@ -504,8 +504,8 @@ def histogram(a, bins=10, range=None, density=None, weights=None):

For full documentation refer to :obj:`numpy.histogram`.

Warning
-------
Warnings
--------
This function may synchronize in order to check a monotonically increasing
array of bin edges. This may harm performance in some applications.

Expand Down Expand Up @@ -675,8 +675,8 @@ def histogram_bin_edges(a, bins=10, range=None, weights=None):

For full documentation refer to :obj:`numpy.histogram_bin_edges`.

Warning
-------
Warnings
--------
This function may synchronize in order to check a monotonically increasing
array of bin edges. This may harm performance in some applications.

Expand Down Expand Up @@ -767,8 +767,8 @@ def histogram2d(x, y, bins=10, range=None, density=None, weights=None):

For full documentation refer to :obj:`numpy.histogram2d`.

Warning
-------
Warnings
--------
This function may synchronize in order to check a monotonically increasing
array of bin edges. This may harm performance in some applications.

Expand Down Expand Up @@ -1100,8 +1100,8 @@ def histogramdd(sample, bins=10, range=None, density=None, weights=None):

For full documentation refer to :obj:`numpy.histogramdd`.

Warning
-------
Warnings
--------
This function may synchronize in order to check a monotonically increasing
array of bin edges. This may harm performance in some applications.

Expand Down
8 changes: 4 additions & 4 deletions dpnp/dpnp_iface_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,8 +829,8 @@ def asfarray(a, dtype=None, *, device=None, usm_type=None, sycl_queue=None):
out : dpnp.ndarray
The input `a` as a float ndarray.

Warning
-------
Warnings
--------
This function is deprecated in favor of :obj:`dpnp.asarray` and
will be removed in a future release.

Expand Down Expand Up @@ -3099,8 +3099,8 @@ def resize(a, new_shape):
be used. In most other cases either indexing (to reduce the size) or
padding (to increase the size) may be a more appropriate solution.

Warning
-------
Warnings
--------
This functionality does **not** consider axes separately, i.e. it does not
apply interpolation/extrapolation.
It fills the return array with the required number of elements, iterating
Expand Down
16 changes: 8 additions & 8 deletions dpnp/dpnp_iface_nanfunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ def nanargmax(a, axis=None, out=None, *, keepdims=False):

For full documentation refer to :obj:`numpy.nanargmax`.

Warning
-------
Warnings
--------
This function synchronizes in order to test for all-NaN slices in the array.
This may harm performance in some applications. To avoid synchronization,
the user is recommended to filter NaNs themselves and use `dpnp.argmax`
on the filtered array.

Warning
-------
Warnings
--------
The results cannot be trusted if a slice contains only NaNs
and -Infs.

Expand Down Expand Up @@ -206,15 +206,15 @@ def nanargmin(a, axis=None, out=None, *, keepdims=False):

For full documentation refer to :obj:`numpy.nanargmin`.

Warning
-------
Warnings
--------
This function synchronizes in order to test for all-NaN slices in the array.
This may harm performance in some applications. To avoid synchronization,
the user is recommended to filter NaNs themselves and use `dpnp.argmax`
on the filtered array.

Warning
-------
Warnings
--------
The results cannot be trusted if a slice contains only NaNs
and -Infs.

Expand Down
56 changes: 26 additions & 30 deletions dpnp/scipy/linalg/_decomp_lu.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ def lu(
Perform the multiplication ``P @ L`` (Default: do not permute).

Default: ``False``.
overwrite_a : {None, bool}, optional
overwrite_a : bool, optional
Whether to overwrite data in `a` (may increase performance).

Default: ``False``.
check_finite : {None, bool}, optional
check_finite : bool, optional
Whether to check that the input matrix contains only finite numbers.
Disabling may give a performance gain, but may result in problems
(crashes, non-termination) if the inputs do contain infinities or NaNs.
Expand All @@ -95,23 +95,19 @@ def lu(

Returns
-------
**(If ``permute_l`` is ``False``)**
The tuple ``(p, l, u)`` is returned if ``permute_l`` is ``False``
(default), else the tuple ``(pl, u)`` is returned, where:

p : (..., M, M) dpnp.ndarray or (..., M) dpnp.ndarray
If `p_indices` is ``False`` (default), the permutation matrix.
The permutation matrix always has a real dtype (``float32`` or
``float64``) even when `a` is complex, since it only contains
0s and 1s.
Permutation matrix or permutation indices.
If `p_indices` is ``False`` (default), a permutation matrix.
The permutation matrix always has a real-valued floating-point dtype
even when `a` is complex, since it only contains 0s and 1s.
If `p_indices` is ``True``, a 1-D (or batched) array of row
permutation indices such that ``A = L[p] @ U``.
l : (..., M, K) dpnp.ndarray
Lower triangular or trapezoidal matrix with unit diagonal.
``K = min(M, N)``.
u : (..., K, N) dpnp.ndarray
Upper triangular or trapezoidal matrix.

**(If ``permute_l`` is ``True``)**

pl : (..., M, K) dpnp.ndarray
Permuted ``L`` matrix: ``pl = P @ L``.
``K = min(M, N)``.
Expand All @@ -130,18 +126,18 @@ def lu(
permutation matrix is still needed then it can be constructed by
``dpnp.eye(M)[P, :]``.

Warning
-------
Warnings
--------
This function synchronizes in order to validate array elements
when ``check_finite=True``, and also synchronizes to compute the
permutation from LAPACK pivot indices.

See Also
--------
:obj:`dpnp.scipy.linalg.lu_factor` : LU factorize a matrix
(compact representation).
:obj:`dpnp.scipy.linalg.lu_solve` : Solve an equation system using
the LU factorization of a matrix.
:func:`dpnp.scipy.linalg.lu_factor` : LU factorize a matrix
(compact representation).
:func:`dpnp.scipy.linalg.lu_solve` : Solve an equation system using
the LU factorization of a matrix.

Examples
--------
Expand Down Expand Up @@ -211,11 +207,11 @@ def lu_factor(a, overwrite_a=False, check_finite=True):
----------
a : (..., M, N) {dpnp.ndarray, usm_ndarray}
Input array to decompose.
overwrite_a : {None, bool}, optional
overwrite_a : bool, optional
Whether to overwrite data in `a` (may increase performance).

Default: ``False``.
check_finite : {None, bool}, optional
check_finite : bool, optional
Whether to check that the input matrix contains only finite numbers.
Disabling may give a performance gain, but may result in problems
(crashes, non-termination) if the inputs do contain infinities or NaNs.
Expand All @@ -233,15 +229,15 @@ def lu_factor(a, overwrite_a=False, check_finite=True):
row i of matrix was interchanged with row piv[i].
Where ``K = min(M, N)``.

Warning
-------
Warnings
--------
This function synchronizes in order to validate array elements
when ``check_finite=True``.

See Also
--------
:obj:`dpnp.scipy.linalg.lu_solve` : Solve an equation system using
the LU factorization of `a` matrix.
:func:`dpnp.scipy.linalg.lu_solve` : Solve an equation system using
the LU factorization of `a` matrix.

Examples
--------
Expand Down Expand Up @@ -273,7 +269,7 @@ def lu_solve(lu_and_piv, b, trans=0, overwrite_b=False, check_finite=True):
lu, piv : {tuple of dpnp.ndarrays or usm_ndarrays}
LU factorization of matrix `a` (..., M, M) together with pivot indices.
b : {(M,), (..., M, K)} {dpnp.ndarray, usm_ndarray}
Right-hand side
Right-hand side.
trans : {0, 1, 2} , optional
Type of system to solve:

Expand All @@ -286,11 +282,11 @@ def lu_solve(lu_and_piv, b, trans=0, overwrite_b=False, check_finite=True):
===== =================

Default: ``0``.
overwrite_b : {None, bool}, optional
overwrite_b : bool, optional
Whether to overwrite data in `b` (may increase performance).

Default: ``False``.
check_finite : {None, bool}, optional
check_finite : bool, optional
Whether to check that the input matrix contains only finite numbers.
Disabling may give a performance gain, but may result in problems
(crashes, non-termination) if the inputs do contain infinities or NaNs.
Expand All @@ -302,14 +298,14 @@ def lu_solve(lu_and_piv, b, trans=0, overwrite_b=False, check_finite=True):
x : {(M,), (..., M, K)} dpnp.ndarray
Solution to the system

Warning
-------
Warnings
--------
This function synchronizes in order to validate array elements
when ``check_finite=True``.

See Also
--------
:obj:`dpnp.scipy.linalg.lu_factor` : LU factorize a matrix.
:func:`dpnp.scipy.linalg.lu_factor` : LU factorize a matrix.

Examples
--------
Expand Down
Loading