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


Please Help Members By Posting Answers For Below Questions

What are the problem with .NET generics?

557


How objects are stored in memory?

499


What is different between Static Constructor and Private Constructor?

464


What does mean before a string in c#?

520


Explain the difference between a sub and a function in c#.

532






What is the difference between mobile application and desktop application?

453


How do namespaces work?

528


Is datetime value type c#?

483


What is default class in c#?

505


Can properties be static in c#?

548


what is IFormatable

580


What is a lambda expression in c#?

516


What is null character in string?

523


List the difference between interface and abstract class?

470


What is the process of Serialization?

563