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

Returns true if this Matrix is diagonal and its diagonal elements are all 1s.

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

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