src/utils/matrix/AbstractMatrix.java
public void maxPool(Matrix result, HashMap<Integer, Integer> maxPos) throws MatrixException {
        if (!hasProcedureFactory()) applyMaxPool(result, maxPos);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyMaxPool(result, maxPos);
            procedureFactory.createMaxPoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
/**
     * Calculates max pooling operation for this matrix and returns max arguments.
     *
     * @param result result matrix.
     * @param maxPos maximum positions for each row and col value.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Calculates max pooling operation for this matrix and returns max arguments.

@param result result matrix.
@param maxPos maximum positions for each row and col value.
@throws MatrixException throws exception if matrix operation fails.
Calculates max pooling operation for this matrix and returns max arguments . @param result result matrix . @param maxPos maximum positions for each row and col value . @throws MatrixException throws exception if matrix operation fails .
public void maxPool(Matrix result, HashMap<Integer, Integer> maxPos) throws MatrixException {
        if (!hasProcedureFactory()) applyMaxPool(result, maxPos);
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            applyMaxPool(result, maxPos);
            procedureFactory.createMaxPoolExpression(expressionLock, this, result, getStride(), getFilterRowSize(), getFilterColumnSize());
        }
    }
public void maxPool ( Matrix result , HashMap < Integer , Integer > maxPos ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) applyMaxPool ( result , maxPos ) ; else { result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; applyMaxPool ( result , maxPos ) ; procedureFactory . createMaxPoolExpression ( expressionLock , this , result , getStride ( ) , getFilterRowSize ( ) , getFilterColumnSize ( ) ) ; } }
Calculates max pooling operation for this matrix and returns max arguments.
Calculates max pooling operation for this matrix and returns max arguments .