+ 1
Transposing a matrix in C++
Hi, I need help writing a program to transpose a matrix (search it up if you are unaware) using Cpp. Basically, you are given how many rows (which is the same as columns, and then you input (all on one line) the numbers to fill the matrix. Is someone able to do it?
1 Answer
0
Sure just switch the rows with the columns. You can take a look at an example implementation in my math library here: https://github.com/Erarnitox/dropMath/blob/main/header/dropMath.hpp#L1398