summaryrefslogtreecommitdiff
path: root/numpy/array_api/_array_object.py
diff options
context:
space:
mode:
authorwarren <warren.weckesser@gmail.com>2021-12-03 22:37:07 -0500
committerwarren <warren.weckesser@gmail.com>2021-12-03 22:37:07 -0500
commitc975a3724831739c2a536510d3998a7f3033d149 (patch)
tree5304f69120dc53b52ea512fbeca22fd551c6dd90 /numpy/array_api/_array_object.py
parent6223584a5ec1e33b98619931e14460d54369dc0d (diff)
parenta81535a364ca2d5aa277977e53c4e2302cae8ea2 (diff)
downloadnumpy-c975a3724831739c2a536510d3998a7f3033d149.tar.gz
Merge branch 'main' into doc-fix-mvn-example
Diffstat (limited to 'numpy/array_api/_array_object.py')
-rw-r--r--numpy/array_api/_array_object.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/array_api/_array_object.py b/numpy/array_api/_array_object.py
index 8794c5ea5..ead061882 100644
--- a/numpy/array_api/_array_object.py
+++ b/numpy/array_api/_array_object.py
@@ -1072,4 +1072,4 @@ class Array:
# https://data-apis.org/array-api/latest/API_specification/array_object.html#t
if self.ndim != 2:
raise ValueError("x.T requires x to have 2 dimensions. Use x.mT to transpose stacks of matrices and permute_dims() to permute dimensions.")
- return self._array.T
+ return self.__class__._new(self._array.T)