0

What is transpose?

how to transpose an array

8th Jan 2017, 4:44 PM
Rushi patel
Rushi patel - avatar
1 Answer
0
A transpose will swap elements of array based of their indices. So, x[r, c] is reassigned the value of x[c, r]. For example, if x = [ [ 1, 2 ] [3, 4] ] and if y = transpose(x) then y = [ [ 1, 3 ] [2, 4] ] What is the form of the input and output data for your code?
8th Jan 2017, 7:05 PM
Nathan
Nathan - avatar