Transpose the matrix along its major diagonal
void transpose( ); |
This function transposes the matrix, such that:
new_array.at(i, j) = old_array.at(j, i)Thus the number of rows and of columns will also be swapped.
Header: matrix.h