src/main/java/ucar/geoapi/SimpleMatrix.java
@Override
    public boolean isIdentity() {
        final int numRow = getNumRow();
        final int numCol = getNumCol();
        if (numRow != numCol) {
            return false;
        }
        for (int j=0; j<numRow; j++) {
            for (int i=0; i<numCol; i++) {
                if (getElement(j,i) != (i==j ? 1 : 0)) {
                    return false;
                }
            }
        }
        return true;
    }
/**
     * Returns {@code true} if this matrix is an identity matrix.
     */
Returns  true if this matrix is an identity matrix.
Returns true if this matrix is an identity matrix .
@Override
    public boolean isIdentity() {
        final int numRow = getNumRow();
        final int numCol = getNumCol();
        if (numRow != numCol) {
            return false;
        }
        for (int j=0; j<numRow; j++) {
            for (int i=0; i<numCol; i++) {
                if (getElement(j,i) != (i==j ? 1 : 0)) {
                    return false;
                }
            }
        }
        return true;
    }
@ Override public boolean isIdentity ( ) { final int numRow = getNumRow ( ) ; final int numCol = getNumCol ( ) ; if ( numRow != numCol ) { return false ; } for ( int j = 0 ; j < numRow ; j ++ ) { for ( int i = 0 ; i < numCol ; i ++ ) { if ( getElement ( j , i ) != ( i == j ? 1 : 0 ) ) { return false ; } } } return true ; }
Returns {@code true} if this matrix is an identity matrix.
Returns { @code true } if this matrix is an identity matrix .