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
How do you create user defined data types in c#?
Explain nullable types in c#?
What is the diff between the System.Array.CopyTo() and System.Array.Clone()?
Why is dll used?
What does public mean in c#?
Explain partial class in c#?
What is difference between dictionary and list in c#?
Write a program to find the angle between the hours and minutes in a clock
What do you mean by saying a "class is a reference type"?
How many types of methods are there in c#?
Illustrate the differences between the system.array.copyto() and system.array.clone()?
What is thread.sleep()?
How to declare a property in a class?
Is dictionary a collection?
can you allow a class to be inherited, but prevent the method from being over-ridden?