@@ -2559,7 +2559,7 @@ def dpnp_lu_solve(lu, piv, b, trans=0, overwrite_b=False, check_finite=True):
2559
2559
_manager = dpu .SequentialOrderManager [exec_q ]
2560
2560
dep_evs = _manager .submitted_events
2561
2561
2562
- # oneMKL LAPACK getrf overwrites `a `.
2562
+ # oneMKL LAPACK getrf overwrites `lu `.
2563
2563
lu_h = dpnp .empty_like (lu , order = "F" , dtype = res_type , usm_type = res_usm_type )
2564
2564
2565
2565
# 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):
2574
2574
2575
2575
# SciPy-compatible behavior
2576
2576
# Copy is required if:
2577
- # - overwrite_a is False (always copy),
2577
+ # - overwrite_b is False (always copy),
2578
2578
# - dtype mismatch,
2579
- # - not F-contiguous,s
2579
+ # - not F-contiguous,
2580
2580
# - not writeable
2581
2581
if not overwrite_b or _is_copy_required (b , res_type ):
2582
2582
b_h = dpnp .empty_like (
@@ -2595,7 +2595,7 @@ def dpnp_lu_solve(lu, piv, b, trans=0, overwrite_b=False, check_finite=True):
2595
2595
b_h = b
2596
2596
dep_ev = _manager .submitted_events
2597
2597
2598
- # oneMKL LAPACK getrf overwrites `a `.
2598
+ # oneMKL LAPACK getrf overwrites `piv `.
2599
2599
piv_h = dpnp .empty_like (piv , order = "F" , usm_type = res_usm_type )
2600
2600
2601
2601
# use DPCTL tensor function to fill the сopy of the pivot array
0 commit comments