Skip to content

Commit 6133cf0

Browse files
Update _make_nonsingular_nd_np to keep order
1 parent 45f59b7 commit 6133cf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dpnp/tests/test_linalg.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,9 +2054,8 @@ def _make_nonsingular_nd_np(shape, dtype, order):
20542054
B[i, i] = A.dtype.type(off + 1.0)
20552055

20562056
A = A3.reshape(shape)
2057-
# A3.reshape returns an array in C order by default
2058-
if order != "C":
2059-
A = numpy.array(A, order=order)
2057+
# Ensure reshapes did not break memory order
2058+
A = numpy.array(A, order=order)
20602059
return A
20612060

20622061
@staticmethod

0 commit comments

Comments
 (0)