Python Forum
Transposing a Matrix WITHOUT numpy
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Transposing a Matrix WITHOUT numpy
#3
(Mar-01-2019, 10:46 PM)ichabod801 Wrote: It's incredibly simple to transpose a 2D matrix in Python:

transposed = zip(*matrix)
It's so simple, that if you are working in 1D, I would suggest converting to 2D to do the transposition.

How can I convert the C Matrix into a 2D Matrix though? Sorry, this is my first semester ever in compsci so I am so lost right now.
Reply


Messages In This Thread
RE: Transposing a Matrix WITHOUT numpy - by TreasureDragon - Mar-02-2019, 04:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Check if two matrix are equal and of not add the matrix to the list quest 3 1,971 Jul-10-2023, 02:41 AM
Last Post: deanhystad
  Transposing a dataframe without creating NaN values doug2019 2 1,988 Mar-18-2023, 03:14 PM
Last Post: jefsummers
  Numpy error while filling up matrix with Characters august 4 3,373 Apr-13-2022, 10:28 PM
Last Post: august
  Create a 2-channel numpy file from two cvs file containing a 9x9 matrix silvialecc 1 2,317 Oct-26-2021, 07:59 AM
Last Post: Gribouillis
  How to multiply a matrix with herself, until the zero matrix results peanutbutterandjelly 3 4,779 May-03-2021, 06:30 AM
Last Post: Gribouillis
  NumPy Matrix help ntailor97 1 2,540 Apr-08-2021, 03:23 AM
Last Post: ntailor97
  Matrix Operations Without Numpy or Incorporating Python into Webpage ebryski 1 4,274 Nov-26-2020, 12:50 PM
Last Post: jefsummers
  Transposing Table salihozturk 3 3,455 Mar-03-2019, 06:55 PM
Last Post: salihozturk
  Transposing in Excel and converting to txt muhsin 2 3,564 Dec-10-2017, 06:06 PM
Last Post: muhsin
  matrix from matrix python numpy array shei7141 1 4,550 Jan-16-2017, 06:10 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020