Transpose Matrix Transformation

Follow along: Transpose Matrix Transformation

The program launching process along with parameter settings are all simplified and set up on the Jupyter Notebook Environment.
  • Create a new *.ipynb file Jupyter Notebook
  • Fill in the content below in the newly created file
  • Follow and Execute the example codes
(The Jetson Board used for these examples are => Jetson Nano)
  • 1.trans.py

import numpy as np

matrix = np.array([[1, 2, 3], [4, 5, 6]])
print(matrix)
print('------')
transposed_matrix = matrix.T
print(transposed_matrix)
  • code progress

    1. Create a matrix of size 2x3.

    2. The matrix is structured as a list within a list.

    3. Each list represents a row of a matrix.

    4. Output the generated matrix.

    5. Create a matrix by transposing the rows and columns of the original matrix.

    6. Output the generated transpose matrix.