Skip to content

Commit 7a8c11c

Browse files
AApply comments
1 parent 8e6e0cd commit 7a8c11c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

dpnp/linalg/dpnp_utils_linalg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2801,9 +2801,7 @@ def dpnp_svd(
28012801
# For A^T = V S^T U^T, `u_h` becomes V and `vt_h` becomes U^T.
28022802
# Transpose and swap them back to restore correct order for A.
28032803
if trans_flag:
2804-
u_h = u_h.transpose()
2805-
vt_h = vt_h.transpose()
2806-
return vt_h, s_h, u_h
2804+
return vt_h.T, s_h, u_h.T
28072805
# gesvd call writes `u_h` and `vt_h` in Fortran order;
28082806
# Convert to contiguous to align with NumPy
28092807
u_h = dpnp.ascontiguousarray(u_h)

dpnp/tests/third_party/cupy/linalg_tests/test_decomposition.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from dpnp.tests.helper import (
88
has_support_aspect64,
99
is_cpu_device,
10-
is_win_platform,
1110
)
1211
from dpnp.tests.third_party.cupy import testing
1312
from dpnp.tests.third_party.cupy.testing import _condition

0 commit comments

Comments
 (0)