CoCoA:IsDiagonal

From ApCoCoAWiki
Revision as of 10:02, 24 October 2007 by XMLBot (talk | contribs) (pushing XML rev. 1.46, again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

IsDiagonal

checks if a matrix is diagonal

Description

This function tests whether the square matrix M is diagonal.

Example

  M := Mat([
           [0, 1, 2],
           [-1, 0, 3],
           [-2, -3, 0]
           ]);
  IsDiagonal(M);
FALSE
-------------------------------

Syntax

IsDiagonal(M: MAT): BOOL
   <type>matrix</type>
   <type>boolean</type>

IsSymmetric

DiagonalMat