0% found this document useful (0 votes)
39 views5 pages

Transpose of Matrix

The document discusses the concept of transposing a square matrix of size N*N, specifically using a 3x3 matrix as an example. It illustrates how rows are converted to columns and vice versa through a series of visual representations. The document emphasizes the transformation process with specific row and column indices.

Uploaded by

Aditya Bharat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views5 pages

Transpose of Matrix

The document discusses the concept of transposing a square matrix of size N*N, specifically using a 3x3 matrix as an example. It illustrates how rows are converted to columns and vice versa through a series of visual representations. The document emphasizes the transformation process with specific row and column indices.

Uploaded by

Aditya Bharat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Multidimensional Arrays

Transpose of Matrix

Transpose of square matrix of size N*N. int x [ 3 ] [ 3 ]

N —> Number of Row and column


1 1 1
changing rows to columns and
columns to rows. 2 2 2

3 3 3
Multidimensional Arrays

int x [ 3 ] [ 3 ] int x [ 3 ] [ 3 ]

1 1 1 1 2 3
R -> C
2 2 2 C -> R 1 2 3

3 3 3 1 2 3

1 1 1

2 2 2

3 3 3
Multidimensional Arrays

int x [ 3 ] [ 3 ] int x [ 3 ] [ 3 ]

1 1 1 1 2 3
R -> C
2 2 2 C -> R 1 2 3

3 3 3 1 2 3

Row 0 1 1 1
J=0

2 2 2

3 3 3
Multidimensional Arrays

int x [ 3 ] [ 3 ] int x [ 3 ] [ 3 ]

1 1 1 1 2 3
R -> C
2 2 2 C -> R 1 2 3

3 3 3 1 2 3

1 1 1
J=0

Row 1 2 2 2 J=0 J=1

3 3 3
Multidimensional Arrays

int x [ 3 ] [ 3 ] int x [ 3 ] [ 3 ]

1 1 1 1 2 3
R -> C
2 2 2 C -> R 1 2 3

3 3 3 1 2 3

1 1 1
J=0

2 2 2 J=0 J=1

Row 2 3 3 3 J=0 J=1 J=2

You might also like