IsDiag(M) = Returns 1 if M is a diagonal matrix, else 0


IsDiag(M) = Returns 1 if M is a diagonal matrix, else 0:

If M is a square matrix with all off diagonal elements equal to zero, the result is 1, else 0. If M is a scalar, 0 is returned.

Return to Matrix and Polynomial Computations
Return to Harry's Home Page


This page accessed times since September 18, 2006.
Page created by: hjsmithh@sbcglobal.net
Changes last made on Monday, 06-Aug-07 20:22:47 PDT

1