src/utils/matrix/AbstractMatrix.java
public Matrix sumAsMatrix() throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(sum());
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(sum());
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createSumExpression(expressionLock, this, result);
            return result;
        }
    }
/**
     * Takes element wise cumulative sum of this matrix.<br>
     * Applies masking element wise if this matrix is masked.<br>
     *
     * @return sum of matrix.
     * @throws MatrixException not thrown in any situation.
     */
Takes element wise cumulative sum of this matrix.
Applies masking element wise if this matrix is masked.

@return sum of matrix.
@throws MatrixException not thrown in any situation.
Takes element wise cumulative sum of this matrix . Applies masking element wise if this matrix is masked . @return sum of matrix . @throws MatrixException not thrown in any situation .
public Matrix sumAsMatrix() throws MatrixException {
        if (!hasProcedureFactory()) return constantAsMatrix(sum());
        else {
            double expressionLock = procedureFactory.startExpression(this);
            Matrix result = constantAsMatrix(sum());
            result.setProcedureFactory(procedureFactory);
            procedureFactory.createSumExpression(expressionLock, this, result);
            return result;
        }
    }
public Matrix sumAsMatrix ( ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) return constantAsMatrix ( sum ( ) ) ; else { double expressionLock = procedureFactory . startExpression ( this ) ; Matrix result = constantAsMatrix ( sum ( ) ) ; result . setProcedureFactory ( procedureFactory ) ; procedureFactory . createSumExpression ( expressionLock , this , result ) ; return result ; } }
Takes element wise cumulative sum of this matrix.<br>
 Applies masking element wise if this matrix is masked.<br>
Takes element wise cumulative sum of this matrix . <br > Applies masking element wise if this matrix is masked . <br >