dpnp.ndarray.T
property
- property ndarray.T
View of the transposed array.
Same as
self.transpose()except that it requires the array to be 2-dimensional.See also
dpnp.transposeEquivalent function.
Examples
>>> import dpnp as np >>> a = np.array([[1, 2], [3, 4]]) >>> a array([[1, 2], [3, 4]]) >>> a.T array([[1, 3], [2, 4]])