src/utils/procedure/expression/SumExpression.java
public void calculateExpression(int sampleIndex) throws MatrixException {
        if (executeAsSingleStep()) return;
        if (argument1.getMatrix(sampleIndex) == null) throw new MatrixException(getExpressionName() + "Arguments for operation not defined");
        result.setMatrix(sampleIndex, argument1.getMatrix(sampleIndex).sumAsMatrix());
    }
/**
     * Calculates expression.
     *
     * @param sampleIndex sample index
     * @throws MatrixException throws exception if calculation fails.
     */
Calculates expression.
@param sampleIndex sample index
@throws MatrixException throws exception if calculation fails.
Calculates expression . @param sampleIndex sample index @throws MatrixException throws exception if calculation fails .
public void calculateExpression(int sampleIndex) throws MatrixException {
        if (executeAsSingleStep()) return;
        if (argument1.getMatrix(sampleIndex) == null) throw new MatrixException(getExpressionName() + "Arguments for operation not defined");
        result.setMatrix(sampleIndex, argument1.getMatrix(sampleIndex).sumAsMatrix());
    }
public void calculateExpression ( int sampleIndex ) throws MatrixException { if ( executeAsSingleStep ( ) ) return ; if ( argument1 . getMatrix ( sampleIndex ) == null ) throw new MatrixException ( getExpressionName ( ) + "Arguments for operation not defined" ) ; result . setMatrix ( sampleIndex , argument1 . getMatrix ( sampleIndex ) . sumAsMatrix ( ) ) ; }
Calculates expression.
Calculates expression .