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 is unmannaged code and will CLR handle this kind of code or not .

597


What are async and await?

543


Int map to which .net types?

549


What are strongly typed objects?

489


What do u mean by delegation of authority?

537






Why delegates are safe in c#?

459


Can we have two main methods in c#?

538


What are the commonly used i/o classes?

534


What is the purpose of a constructor in c#?

473


Can var be null c#?

485


Explain boxing and unboxing in c#?

515


Major difference between Basic httpbinding and WShttpbinding?

589


What is the difference between int16 and int32 in c#?

480


What is the difference between list and dictionary in c#?

464


What is a hashset c#?

482