pangolin.interface.Interface.transpose# Interface.transpose(a)[source]# Transpose a matrix. The input must be two-dimensional. An input with shape (m, n) produces an output with shape (n, m). Parameters: a (RVLike) – Input matrix. Return type: RV Examples >>> import pangolin.interface as pi >>> pi.transpose([[1, 2, 3], [4, 5, 6]]).shape (3, 2)