src/utils/matrix/MMatrix.java
public MMatrix unjoin(int subMatrixIndex) throws MatrixException {
        MMatrix unjoinedMMatrix = new MMatrix(getDepth());
        for (Integer entryIndex : keySet()) {
            ArrayList<Matrix> subMatrices = get(entryIndex).getSubMatrices();
            if (subMatrixIndex < 0 || subMatrixIndex > subMatrices.size() - 1) throw new MatrixException("Joined matrix does not have sub matrix index: " + subMatrixIndex);
            unjoinedMMatrix.put(entryIndex, subMatrices.get(subMatrixIndex));
        }
        return unjoinedMMatrix;
    }
/**
     * Unjoins joined matrix by returning matrix corresponding given sub matrix index.
     *
     * @param subMatrixIndex sub matrix index.
     * @return unjoined matrix.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Unjoins joined matrix by returning matrix corresponding given sub matrix index.
@param subMatrixIndex sub matrix index.
@return unjoined matrix.
@throws MatrixException throws exception if matrix operation fails.
Unjoins joined matrix by returning matrix corresponding given sub matrix index . @param subMatrixIndex sub matrix index . @return unjoined matrix . @throws MatrixException throws exception if matrix operation fails .
public MMatrix unjoin(int subMatrixIndex) throws MatrixException {
        MMatrix unjoinedMMatrix = new MMatrix(getDepth());
        for (Integer entryIndex : keySet()) {
            ArrayList<Matrix> subMatrices = get(entryIndex).getSubMatrices();
            if (subMatrixIndex < 0 || subMatrixIndex > subMatrices.size() - 1) throw new MatrixException("Joined matrix does not have sub matrix index: " + subMatrixIndex);
            unjoinedMMatrix.put(entryIndex, subMatrices.get(subMatrixIndex));
        }
        return unjoinedMMatrix;
    }
public MMatrix unjoin ( int subMatrixIndex ) throws MatrixException { MMatrix unjoinedMMatrix = new MMatrix ( getDepth ( ) ) ; for ( Integer entryIndex : keySet ( ) ) { ArrayList < Matrix > subMatrices = get ( entryIndex ) . getSubMatrices ( ) ; if ( subMatrixIndex < 0 || subMatrixIndex > subMatrices . size ( ) - 1 ) throw new MatrixException ( "Joined matrix does not have sub matrix index: " + subMatrixIndex ) ; unjoinedMMatrix . put ( entryIndex , subMatrices . get ( subMatrixIndex ) ) ; } return unjoinedMMatrix ; }
Unjoins joined matrix by returning matrix corresponding given sub matrix index.
Unjoins joined matrix by returning matrix corresponding given sub matrix index .