We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11ebcb6 commit d1be133Copy full SHA for d1be133
array_api_strict/_array_object.py
@@ -1072,4 +1072,4 @@ def T(self) -> Array:
1072
# https://data-apis.org/array-api/latest/API_specification/array_object.html#t
1073
if self.ndim != 2:
1074
raise ValueError("x.T requires x to have 2 dimensions. Use x.mT to transpose stacks of matrices and permute_dims() to permute dimensions.")
1075
- return self._array.T
+ return self.__class__._new(self._array.T)
0 commit comments