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 difference between string and string builder?
Can we inherit a private class in c#?
What does the parsefloat function do?
What is private class in c#?
Explain jagged arrays in c#?
Is enum a class c#?
Can an abstract class inherit from another abstract class c#?
Can arraylist hold primitive types?
Is array a list?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?
Why can't we use a static class instead of singleton?
What is dependency injection in simple words?
What is global namespace in c#?
Which .gang of four. Design pattern is shown below?
What are the types of serialization?