is_diagonal


Description:

public bool is_diagonal ()

Checks if the given matrix is diagonal.

Parameters:

this

The matrix that is to be tested.

Returns:

true if the matrix is diagonal, false otherwise