Transpose Matrix in Every LanguagePublished on 08 October 2020 (Updated: 06 October 2021)
In this article, we’ll demonstrate how to find Transpose of a Matrix, its requirements, and how to test it.
In linear algebra, the transpose of a matrix is an operator which flips a matrix over its diagonal; that is, it switches the row and column indices of the matrix A by producing another matrix, often denoted by Aᵀ. For example, the following matrix could be the matrix A:
Once transposed, A becomes the following matrix, Aᵀ:
The transpose of a matrix was introduced in 1858 by the British mathematician Arthur Cayley.
For the purposes of this project, we’ll ask that you create a program which accepts a matrix as a list of integers and the dimensions of that matrix in the following format:
transpose-matrix.lang 3 3 "1, 2, 3, 4, 5, 6, 7, 8, 9"
Here, the first two input numbers indicate the column and row size of the matrix, respectively, and the next input is the list of numbers to be included in the matrix.
Verify that the actual output matches the expected output (see [requirements])
|No input||Usage: please enter the dimension of the matrix and the serialized matrix|
|Missing input: Size||
||Usage: please enter the dimension of the matrix and the serialized matrix|
|Missing input: integers||3||3||Usage: please enter the dimension of the matrix and the serialized matrix|
Currently, there are no articles. If you'd like to begin contributing, head
over to the repo to get started.