hi,
i have this topic for my practicals. can anybody help me to write Java program for checking identity matrix?
check identity matrix
Page 1 of 11 Replies  5035 Views  Last Post: 22 July 2008  11:06 AM
Replies To: check identity matrix
#2
Re: check identity matrix
Posted 22 July 2008  11:06 AM
If someone drew several matrices on the whiteboard, would you be able to tell which (if any) of them were and NxN identity matrix? Obviously you would, if they lined up the indices nicely. But, you need to think about how you would do it programatically. Forget Java and just think about the algorithm you would use (in pseudocode). Go row by row and think about how row N relates to row(N1) and row(N+1) in an identity matrix. Don't forget about you base case as well (I1).
Page 1 of 1
