src/utils/matrix/AbstractMatrix.java
public void subtract(double constant, Matrix result) throws MatrixException {
        Matrix other = getNewMatrix(constant);
        if (!hasProcedureFactory()) subtract(other, result);
        else {
            synchronizeProcedureFactory(other);
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            subtract(other, result);
            procedureFactory.createSubtractExpression(expressionLock, this, other, result);
        }
    }
/**
     * Subtracts constant number from this matrix.<br>
     * Applies masking element wise if this matrix is masked.<br>
     *
     * @param constant contains constant value to be subtracted.
     * @param result matrix which stores operation result.
     * @throws MatrixException not thrown in any situation.
     */
Subtracts constant number from this matrix.
Applies masking element wise if this matrix is masked.

@param constant contains constant value to be subtracted.
@param result matrix which stores operation result.
@throws MatrixException not thrown in any situation.
Subtracts constant number from this matrix . Applies masking element wise if this matrix is masked . @param constant contains constant value to be subtracted . @param result matrix which stores operation result . @throws MatrixException not thrown in any situation .
public void subtract(double constant, Matrix result) throws MatrixException {
        Matrix other = getNewMatrix(constant);
        if (!hasProcedureFactory()) subtract(other, result);
        else {
            synchronizeProcedureFactory(other);
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            subtract(other, result);
            procedureFactory.createSubtractExpression(expressionLock, this, other, result);
        }
    }
public void subtract ( double constant , Matrix result ) throws MatrixException { Matrix other = getNewMatrix ( constant ) ; if ( ! hasProcedureFactory ( ) ) subtract ( other , result ) ; else { synchronizeProcedureFactory ( other ) ; result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; subtract ( other , result ) ; procedureFactory . createSubtractExpression ( expressionLock , this , other , result ) ; } }
Subtracts constant number from this matrix.<br>
 Applies masking element wise if this matrix is masked.<br>
Subtracts constant number from this matrix . <br > Applies masking element wise if this matrix is masked . <br >