How to transpose rows into columns and columns into rows in
a multi-dimensional array?
Answer Posted / sarath
We Have a predefined method for transposing Matrix i.e
TRANSPOSE().
for ex: We have one Matrix called 'A'
A is the array | 0 -5 8 -7 |
| 2 4 -1 1 |
| 7 5 6 -6 |
Transpose the columns and rows of A.
RES = TRANSPOSE( A )
The result is | 0 2 7 |
| -5 4 5 |
| 8 -1 6 |
! | -7 1 -6 |
| Is This Answer Correct ? | 21 Yes | 5 No |
Post New Answer View All Answers
What can be done with c#?
What is ienumerable t in c#?
What is a Managed Code??
Why array is faster than arraylist in c#?
What does args mean in c#?
Name the two classes are required for implementing a windows service?
What is difference between hashtable and dictionary in c#?
Why constructor is used in c#?
Explain the process of Serialization?
List some Advantages of switch-case over if else?
Can the accessibility of a type member be greater than the accessibility of its containing type?
What are c# i/o classes?
Explain Direct CAST vs CType ?
Why to use “finally” block in c#?
What is expression tree in c#?