Slide 12
Slide 12 text
Since 2 dimensional arrays are represented as rows & columns and matrices are also
represented as rows and columns, we can represent matrices as 2 dimensional arrays while
programming.
Consider the 3x3 matrix below:
2 9 4
0 7 8
3 5 1
It’s equivalent 2d array representation will be:
@adoranwodo
REPRESENTING MATRICES
REAL LIFE USES OF ARRAYS
var matrix = new int[3, 3] {
// Row 0
{ 2 , 9, 4 },
// Row 1
{ 0 , 7, 8 },
// Row 2
{ 3 , 5, 1 },
}