src/utils/procedure/node/AbstractNode.java
public void cumulateGradient(int index, Matrix outputGradient, boolean negateGradient) throws MatrixException {
        if (getGradient(index) == null) setGradient(index, getEmptyMatrix());

        if (!negateGradient) getGradient(index).add(outputGradient, getGradient(index));
        else getGradient(index).subtract(outputGradient, getGradient(index));

        cumulatedGradientEntryCount++;
    }
/**
     * Cumulates gradient.
     *
     * @param index data index.
     * @param outputGradient output gradient.
     * @param negateGradient if true output gradient contribution is negated prior being cumulated.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Cumulates gradient.

@param index data index.
@param outputGradient output gradient.
@param negateGradient if true output gradient contribution is negated prior being cumulated.
@throws MatrixException throws exception if matrix operation fails.
Cumulates gradient . @param index data index . @param outputGradient output gradient . @param negateGradient if true output gradient contribution is negated prior being cumulated . @throws MatrixException throws exception if matrix operation fails .
public void cumulateGradient(int index, Matrix outputGradient, boolean negateGradient) throws MatrixException {
        if (getGradient(index) == null) setGradient(index, getEmptyMatrix());
        if (!negateGradient) getGradient(index).add(outputGradient, getGradient(index));
        else getGradient(index).subtract(outputGradient, getGradient(index));
        cumulatedGradientEntryCount++;
    }
public void cumulateGradient ( int index , Matrix outputGradient , boolean negateGradient ) throws MatrixException { if ( getGradient ( index ) == null ) setGradient ( index , getEmptyMatrix ( ) ) ; if ( ! negateGradient ) getGradient ( index ) . add ( outputGradient , getGradient ( index ) ) ; else getGradient ( index ) . subtract ( outputGradient , getGradient ( index ) ) ; cumulatedGradientEntryCount ++ ; }
Cumulates gradient.
Cumulates gradient .