Skip to content

Commit 38bbea7

Browse files
authored
Add specification for .mT attribute (#246)
1 parent 527ec4f commit 38bbea7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spec/API_specification/array_object.md

+13
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,19 @@ Hardware device the array data resides on.
214214

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

217+
(attribute-mT)=
218+
### mT
219+
220+
Transpose of a matrix (or a stack of matrices).
221+
222+
If an array instance has fewer than two dimensions, an error should be raised.
223+
224+
#### Returns
225+
226+
- **out**: _<array>_
227+
228+
- 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.
229+
217230
(attribute-ndim)=
218231
### ndim
219232

0 commit comments

Comments
 (0)