pangolin.interface.transpose#
- pangolin.interface.transpose(a)#
Transpose a matrix.
The input must be two-dimensional. An input with shape
(m, n)produces an output with shape(n, m).Examples
>>> import pangolin.interface as pi >>> pi.transpose([[1, 2, 3], [4, 5, 6]]).shape (3, 2)