Scythe-1.0.3
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
bool scythe::Matrix< T_type, ORDER, STYLE >::isDiagonal ( ) const [inline]

Returns true if this Matrix is square and its off-diagonal elements are all 0.

The return value of this method is undefined for null matrices.

See also:
isSquare()
isIdentity()
isLowerTriangular()
isUpperTriangular()