Matrix Operations
Explore frequently used operations on matrices.
Transpose
A transpose of the matrix is another matrix, such that , the row of becomes the column of .
Example
Note: The transpose of a symmetric matrix is the same matrix.
Transpose in NumPy
We can use .T
to take the transpose of matrices in NumPy. The following code illustrates its use.
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy