Array-promo
Matrix-promo

Question

Program to determine whether a given matrix is an identity matrix.
A matrix is said to be the identity matrix if it is the square matrix in which elements of principle diagonal are ones, and the rest of the elements are zeroes.

				
					[1,     0,     0]
[0,     1,     0]
[0,     0,     1]
				
			

MATRIX IS AN IDENTITY MATRIX

Share code with your friends

Share on whatsapp
Share on facebook
Share on twitter
Share on telegram

Code

Coding Store

Leave a Reply

Your email address will not be published. Required fields are marked *