src/utils/matrix/MMatrix.java
public void applyBi(Matrix other, MMatrix result, BinaryFunction binaryFunction) throws MatrixException {
        if (!hasProcedureFactory()) for (Integer index : matrices.keySet()) result.put(index, get(index).applyBi(other, binaryFunction));
        else {
            synchronizeProcedureFactory(other);
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            for (Integer index : matrices.keySet()) result.put(index, get(index).applyBi(other, binaryFunction));
            procedureFactory.createBinaryFunctionExpression(expressionLock, this, other, result, binaryFunction);
        }
    }
/**
     * Applies binaryFunction to this MMatrix.<br>
     * Example of operation can be subtraction of other MMatrix from this MMatrix.<br>
     * Applies masking if MMatrix is masked.<br>
     *
     * @param other other matrix
     * @param result result matrix.
     * @param binaryFunction binaryFunction to be applied.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Applies binaryFunction to this MMatrix.
Example of operation can be subtraction of other MMatrix from this MMatrix.
Applies masking if MMatrix is masked.

@param other other matrix
@param result result matrix.
@param binaryFunction binaryFunction to be applied.
@throws MatrixException throws exception if matrix operation fails.
Applies binaryFunction to this MMatrix . Example of operation can be subtraction of other MMatrix from this MMatrix . Applies masking if MMatrix is masked . @param other other matrix @param result result matrix . @param binaryFunction binaryFunction to be applied . @throws MatrixException throws exception if matrix operation fails .
public void applyBi(Matrix other, MMatrix result, BinaryFunction binaryFunction) throws MatrixException {
        if (!hasProcedureFactory()) for (Integer index : matrices.keySet()) result.put(index, get(index).applyBi(other, binaryFunction));
        else {
            synchronizeProcedureFactory(other);
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            for (Integer index : matrices.keySet()) result.put(index, get(index).applyBi(other, binaryFunction));
            procedureFactory.createBinaryFunctionExpression(expressionLock, this, other, result, binaryFunction);
        }
    }
public void applyBi ( Matrix other , MMatrix result , BinaryFunction binaryFunction ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) for ( Integer index : matrices . keySet ( ) ) result . put ( index , get ( index ) . applyBi ( other , binaryFunction ) ) ; else { synchronizeProcedureFactory ( other ) ; result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; for ( Integer index : matrices . keySet ( ) ) result . put ( index , get ( index ) . applyBi ( other , binaryFunction ) ) ; procedureFactory . createBinaryFunctionExpression ( expressionLock , this , other , result , binaryFunction ) ; } }
Applies binaryFunction to this MMatrix.<br>
 Example of operation can be subtraction of other MMatrix from this MMatrix.<br>
 Applies masking if MMatrix is masked.<br>
Applies binaryFunction to this MMatrix . <br > Example of operation can be subtraction of other MMatrix from this MMatrix . <br > Applies masking if MMatrix is masked . <br >