src/utils/matrix/AbstractMatrix.java
public Matrix cyclicPoolGradient(HashMap<Integer, Integer> inputPos) throws MatrixException {
        Matrix inputGradient = getNewMatrix(getRows() + getFilterRowSize() - 1, getColumns() + getFilterColumnSize() - 1);
        cyclicPoolGradient(inputGradient, inputPos);
        return inputGradient;
    }
/**
     * Calculates gradient of cyclic pooling operation for this matrix.
     *
     * @param inputPos input positions for each row and col value.
     * @return input gradient.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Calculates gradient of cyclic pooling operation for this matrix.

@param inputPos input positions for each row and col value.
@return input gradient.
@throws MatrixException throws exception if matrix operation fails.
Calculates gradient of cyclic pooling operation for this matrix . @param inputPos input positions for each row and col value . @return input gradient . @throws MatrixException throws exception if matrix operation fails .
public Matrix cyclicPoolGradient(HashMap<Integer, Integer> inputPos) throws MatrixException {
        Matrix inputGradient = getNewMatrix(getRows() + getFilterRowSize() - 1, getColumns() + getFilterColumnSize() - 1);
        cyclicPoolGradient(inputGradient, inputPos);
        return inputGradient;
    }
public Matrix cyclicPoolGradient ( HashMap < Integer , Integer > inputPos ) throws MatrixException { Matrix inputGradient = getNewMatrix ( getRows ( ) + getFilterRowSize ( ) - 1 , getColumns ( ) + getFilterColumnSize ( ) - 1 ) ; cyclicPoolGradient ( inputGradient , inputPos ) ; return inputGradient ; }
Calculates gradient of cyclic pooling operation for this matrix.
Calculates gradient of cyclic pooling operation for this matrix .