Matrix identity [closed]

0

I must make an identity matrix and I do not know how to start the algorithm.

    
asked by jorge 03.08.2017 в 20:56
source

1 answer

0

It is defined as the diagonal matrix that has value 1 in each of the entries of the main diagonal, and 0 in the rest. So, in a 5x5 identity matrix it would be:

1    0    0    0    0
0    1    0    0    0
0    0    1    0    0
0    0    0    1    0
0    0    0    0    1

Already knowing that it is an identity marix, it should be easy to implement the code in C #.

Greetings

    
answered by 03.08.2017 / 21:07
source