Skip to content

Commit 1f26e54

Browse files
committed
Add specification for .mT attribute
1 parent a7a91fe commit 1f26e54

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/API_specification/array_object.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,19 @@ Hardware device the array data resides on.
215215

216216
- a `device` object (see {ref}`device-support`).
217217

218+
(attribute-mT)=
219+
### mT
220+
221+
Transpose of a matrix (or a stack of matrices).
222+
223+
If an array instance has fewer than two dimensions, an error should be raised.
224+
225+
#### Returns
226+
227+
- **out**: _<array>_
228+
229+
- array whose last two dimensions (axes) are permuted in reverse order relative to original array (i.e., for an array instance having shape `(..., M, N)`, the returned array must have shape `(..., N, M)`). The returned array must have the same data type as the original array.
230+
218231
(attribute-ndim)=
219232
### ndim
220233

0 commit comments

Comments
 (0)