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 is unmannaged code and will CLR handle this kind of code or not .
What are async and await?
Int map to which .net types?
What are strongly typed objects?
What do u mean by delegation of authority?
Why delegates are safe in c#?
Can we have two main methods in c#?
What are the commonly used i/o classes?
What is the purpose of a constructor in c#?
Can var be null c#?
Explain boxing and unboxing in c#?
Major difference between Basic httpbinding and WShttpbinding?
What is the difference between int16 and int32 in c#?
What is the difference between list and dictionary in c#?
What is a hashset c#?