Skip to content

Commit 6dc1e7b

Browse files
transpose array method added
1 parent 3c28e7a commit 6dc1e7b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

dpnp/dpnp_array.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,19 @@ def strides(self):
677677
# 'tostring',
678678
# 'trace',
679679
# 'transpose',
680+
681+
def transpose(self, *axes):
682+
"""
683+
Returns a view of the array with axes permuted.
684+
685+
.. seealso::
686+
:obj:`dpnp.transpose` for full documentation,
687+
:meth:`numpy.ndarray.reshape`
688+
689+
"""
690+
691+
return dpnp.transpose(self, axes)
692+
680693
# 'var',
681694
# 'view'
682695

tests/skipped_tests_gpu.tbl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,9 +1010,6 @@ tests/third_party/cupy/manipulation_tests/test_tiling.py::TestTile_param_4_{reps
10101010
tests/third_party/cupy/manipulation_tests/test_tiling.py::TestTile_param_5_{reps=(2, 3, 4, 5)}::test_array_tile
10111011
tests/third_party/cupy/manipulation_tests/test_transpose.py::TestTranspose::test_moveaxis_invalid5_2
10121012
tests/third_party/cupy/manipulation_tests/test_transpose.py::TestTranspose::test_moveaxis_invalid5_3
1013-
tests/third_party/cupy/manipulation_tests/test_transpose.py::TestTranspose::test_transpose
1014-
tests/third_party/cupy/manipulation_tests/test_transpose.py::TestTranspose::test_transpose_empty
1015-
tests/third_party/cupy/manipulation_tests/test_transpose.py::TestTranspose::test_transpose_none
10161013
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticBinary2_param_279_{arg1=array([[1., 2., 3.], [4., 5., 6.]], dtype=float32), arg2=array([[0., 1., 2.], [3., 4., 5.]], dtype=float32), dtype=float64, name='floor_divide', use_dtype=False}::test_binary
10171014
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticBinary2_param_287_{arg1=array([[1., 2., 3.], [4., 5., 6.]], dtype=float32), arg2=array([[0., 1., 2.], [3., 4., 5.]]), dtype=float64, name='floor_divide', use_dtype=False}::test_binary
10181015
tests/third_party/cupy/math_tests/test_arithmetic.py::TestArithmeticBinary2_param_295_{arg1=array([[1., 2., 3.], [4., 5., 6.]], dtype=float32), arg2=array([[0, 1, 2], [3, 4, 5]], dtype=int32), dtype=float64, name='floor_divide', use_dtype=False}::test_binary

0 commit comments

Comments
 (0)