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
Can a struct inherit from an interface in c#?
Which is faster array or arraylist in c#?
What are the Types of values mode can hold session state in web.config
What do you mean by object pooling?
What is difference between const and static in c#?
What are different types of Delegates in C#?
Explain the difference between Response.Write () and Response.Output.Write ().
What is difference between events and delegates?
what is a static constructor?
What Happens In Memory When You Box And Unbox A Value-type?
What are extension methods and where can we use them?
What is the difference between protected and private?
What are the 3 logical operators?
Why ienumerable is used in c#?
What are native methods?