Skip to content

Commit be2725a

Browse files
Update doc/comment lines
1 parent 2021f77 commit be2725a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

dpnp/linalg/dpnp_iface_linalg.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -970,14 +970,14 @@ def lu_factor(a, overwrite_a=False, check_finite=True):
970970

971971
def lu_solve(lu_and_piv, b, trans=0, overwrite_b=False, check_finite=True):
972972
"""
973-
Solve an equation system, a x = b, given the LU factorization of `a`
973+
Solve an equation system, a x = b, given the LU factorization of `a`.
974974
975975
For full documentation refer to :obj:`scipy.linalg.lu_solve`.
976976
977977
Parameters
978978
----------
979-
(lu, piv) : {tuple of dpnp.ndarrays or usm_ndarrays}
980-
LU factorization of matrix `a` ((M, N)) together with pivot indices.
979+
lu, piv : {tuple of dpnp.ndarrays or usm_ndarrays}
980+
LU factorization of matrix `a` (M, N) together with pivot indices.
981981
b : {(M,), (..., M, K)} {dpnp.ndarray, usm_ndarray}
982982
Right-hand side
983983
trans : {0, 1, 2} , optional

dpnp/linalg/dpnp_utils_linalg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,7 +2559,7 @@ def dpnp_lu_solve(lu, piv, b, trans=0, overwrite_b=False, check_finite=True):
25592559
_manager = dpu.SequentialOrderManager[exec_q]
25602560
dep_evs = _manager.submitted_events
25612561

2562-
# oneMKL LAPACK getrf overwrites `a`.
2562+
# oneMKL LAPACK getrf overwrites `lu`.
25632563
lu_h = dpnp.empty_like(lu, order="F", dtype=res_type, usm_type=res_usm_type)
25642564

25652565
# use DPCTL tensor function to fill the сopy of the input array
@@ -2574,9 +2574,9 @@ def dpnp_lu_solve(lu, piv, b, trans=0, overwrite_b=False, check_finite=True):
25742574

25752575
# SciPy-compatible behavior
25762576
# Copy is required if:
2577-
# - overwrite_a is False (always copy),
2577+
# - overwrite_b is False (always copy),
25782578
# - dtype mismatch,
2579-
# - not F-contiguous,s
2579+
# - not F-contiguous,
25802580
# - not writeable
25812581
if not overwrite_b or _is_copy_required(b, res_type):
25822582
b_h = dpnp.empty_like(
@@ -2595,7 +2595,7 @@ def dpnp_lu_solve(lu, piv, b, trans=0, overwrite_b=False, check_finite=True):
25952595
b_h = b
25962596
dep_ev = _manager.submitted_events
25972597

2598-
# oneMKL LAPACK getrf overwrites `a`.
2598+
# oneMKL LAPACK getrf overwrites `piv`.
25992599
piv_h = dpnp.empty_like(piv, order="F", usm_type=res_usm_type)
26002600

26012601
# use DPCTL tensor function to fill the сopy of the pivot array

0 commit comments

Comments
 (0)