Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
36d21df
Implement getrs_batch lapack extension
vlad-perevezentsev Oct 7, 2025
4270823
Add more validation checks in getrs_batch
vlad-perevezentsev Oct 9, 2025
14feed3
Implement _batched_lu_solve
vlad-perevezentsev Oct 9, 2025
5e21a02
Add TestLuSolveBatched
vlad-perevezentsev Oct 9, 2025
a13cd88
Compute strides explicitly
vlad-perevezentsev Oct 9, 2025
b68d80b
Update test_lu_solve in test_usm_type/sycl_queue.py
vlad-perevezentsev Oct 9, 2025
f6d77fe
Add square-matrix assertion in lu_solve
vlad-perevezentsev Oct 9, 2025
eb8c58a
Update test_empty_shapes for lu_solve()
vlad-perevezentsev Oct 9, 2025
7464a25
Merge master into impl_lu_solve_batch
vlad-perevezentsev Oct 9, 2025
959f5f8
Move changes to new location(scipy folder)
vlad-perevezentsev Oct 9, 2025
e760aa2
Update lu_solve docs
vlad-perevezentsev Oct 9, 2025
38689a3
Update changelog
vlad-perevezentsev Oct 9, 2025
240f97e
Apply text-related comments
vlad-perevezentsev Oct 10, 2025
01078bf
Const correctness for getrs and getrs_batch params
vlad-perevezentsev Oct 10, 2025
6b3f331
Apply remarks for _utils.py
vlad-perevezentsev Oct 10, 2025
83a8c85
Apply remarks for getrf_batch.cpp
vlad-perevezentsev Oct 10, 2025
4208454
Merge master into impl_lu_solve_batch
vlad-perevezentsev Oct 10, 2025
cddc321
Fix ipiv_contig check in getrs
vlad-perevezentsev Oct 10, 2025
8b7aecb
Merge master into impl_lu_solve_batch
vlad-perevezentsev Oct 10, 2025
3e7ed55
Remove const from ipiv to match oneMath signature
vlad-perevezentsev Oct 13, 2025
ee24137
Merge master into impl_lu_solve_batch
vlad-perevezentsev Oct 13, 2025
183293b
Apply remarks
vlad-perevezentsev Oct 14, 2025
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
Prev Previous commit
Next Next commit
Update test_empty_shapes for lu_solve()
  • Loading branch information
vlad-perevezentsev committed Oct 9, 2025
commit eb8c58a732763e26735c20fb45bc9b196bc001ba
22 changes: 9 additions & 13 deletions dpnp/tests/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2320,19 +2320,15 @@ def test_broadcast_rhs(self, b_shape):

assert dpnp.allclose(a_dp @ x, b_dp, rtol=1e-5, atol=1e-5)

@pytest.mark.parametrize("shape", [(0, 0), (0, 5), (5, 5)])
@pytest.mark.parametrize("rhs_cols", [None, 0, 3])
def test_empty_shapes(self, shape, rhs_cols):
a_dp = dpnp.empty(shape, dtype=dpnp.default_float_type(), order="F")
if min(shape) > 0:
for i in range(min(shape)):
@pytest.mark.parametrize("a_shape", [(0, 0), (5, 5)])
@pytest.mark.parametrize("b_shape", [(0,), (0, 0), (0, 5)])
def test_empty_shapes(self, a_shape, b_shape):
a_dp = dpnp.empty(a_shape, dtype=dpnp.default_float_type(), order="F")
n = a_shape[0]

if n > 0:
for i in range(n):
a_dp[i, i] = a_dp.dtype.type(1.0)

n = shape[0]
if rhs_cols is None:
b_shape = (n,)
else:
b_shape = (n, rhs_cols)
b_dp = dpnp.empty(b_shape, dtype=dpnp.default_float_type(), order="F")

lu, piv = dpnp.linalg.lu_factor(a_dp, check_finite=False)
Expand Down Expand Up @@ -2537,7 +2533,7 @@ def test_diff_type(self, dtype_a, dtype_b, b_shape):
((0, 0, 0), (0, 0)),
],
)
def test_empty_inputs(self, a_shape, b_shape):
def test_empty_shapes(self, a_shape, b_shape):
a = dpnp.empty(a_shape, dtype=dpnp.default_float_type(), order="F")
b = dpnp.empty(b_shape, dtype=dpnp.default_float_type(), order="F")

Expand Down