src/core/reinforcement/memory/StateTransition.java
private boolean compare(Matrix matrix1, Matrix matrix2) throws MatrixException {
        if (matrix1 == null && matrix2 == null) return true;
        else {
            if (matrix1 == null || matrix2 == null) return false;
            else return matrix1.equals(matrix2);
        }
    }
/**
     * Compares two matrices with each other.
     *
     * @param matrix1 first matrix to be compared.
     * @param matrix2 second matrix to be compared.
     * @return returns true if matrices are equal otherwise returns false.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Compares two matrices with each other.
@param matrix1 first matrix to be compared.
@param matrix2 second matrix to be compared.
@return returns true if matrices are equal otherwise returns false.
@throws MatrixException throws exception if matrix operation fails.
Compares two matrices with each other . @param matrix1 first matrix to be compared . @param matrix2 second matrix to be compared . @return returns true if matrices are equal otherwise returns false . @throws MatrixException throws exception if matrix operation fails .
private boolean compare(Matrix matrix1, Matrix matrix2) throws MatrixException {
        if (matrix1 == null && matrix2 == null) return true;
        else {
            if (matrix1 == null || matrix2 == null) return false;
            else return matrix1.equals(matrix2);
        }
    }
private boolean compare ( Matrix matrix1 , Matrix matrix2 ) throws MatrixException { if ( matrix1 == null && matrix2 == null ) return true ; else { if ( matrix1 == null || matrix2 == null ) return false ; else return matrix1 . equals ( matrix2 ) ; } }
Compares two matrices with each other.
Compares two matrices with each other .