Another frequently used elementary matrix operation is the *transpose* of a matrix. The transpose of a matrix *A* is represented as or . A simple way to define the transpose of a matrix is by reflecting the matrix over its *prime diagonal*. By prime diagonal, we mean the diagonal comprising elements whose row and column indices are equal. We can also describe the transpose of a matrix by swapping of the rows and columns of a matrix. We can use the following `transpose`

function from core.matrix to perform this operation: ...

Start Free Trial

No credit card required