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 difference between string and string builder?

517


Can we inherit a private class in c#?

455


What does the parsefloat function do?

482


What is private class in c#?

474


Explain jagged arrays in c#?

560






Is enum a class c#?

495


Can an abstract class inherit from another abstract class c#?

534


Can arraylist hold primitive types?

529


Is array a list?

480


what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?

1680


Why can't we use a static class instead of singleton?

443


What is dependency injection in simple words?

496


What is global namespace in c#?

475


Which .gang of four. Design pattern is shown below?

486


What are the types of serialization?

505