src/utils/matrix/MMatrix.java
public void apply(MMatrix result, UnaryFunction unaryFunction) throws MatrixException {
        if (!hasProcedureFactory()) for (Integer index : matrices.keySet()) result.put(index, get(index).apply(unaryFunction));
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            for (Integer index : matrices.keySet()) result.put(index, get(index).apply(unaryFunction));
            procedureFactory.createUnaryFunctionExpression(expressionLock, this, result, unaryFunction);
        }
    }
/**
     * Applies unaryFunction to this MMatrix.<br>
     * Example of operation can be applying square root operation to this matrix.<br>
     * Applies masking if MMatrix is masked.<br>
     *
     * @param unaryFunction unaryFunction to be applied.
     * @param result result matrix.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Applies unaryFunction to this MMatrix.
Example of operation can be applying square root operation to this matrix.
Applies masking if MMatrix is masked.

@param unaryFunction unaryFunction to be applied.
@param result result matrix.
@throws MatrixException throws exception if matrix operation fails.
Applies unaryFunction to this MMatrix . Example of operation can be applying square root operation to this matrix . Applies masking if MMatrix is masked . @param unaryFunction unaryFunction to be applied . @param result result matrix . @throws MatrixException throws exception if matrix operation fails .
public void apply(MMatrix result, UnaryFunction unaryFunction) throws MatrixException {
        if (!hasProcedureFactory()) for (Integer index : matrices.keySet()) result.put(index, get(index).apply(unaryFunction));
        else {
            result.setProcedureFactory(procedureFactory);
            double expressionLock = procedureFactory.startExpression(this);
            for (Integer index : matrices.keySet()) result.put(index, get(index).apply(unaryFunction));
            procedureFactory.createUnaryFunctionExpression(expressionLock, this, result, unaryFunction);
        }
    }
public void apply ( MMatrix result , UnaryFunction unaryFunction ) throws MatrixException { if ( ! hasProcedureFactory ( ) ) for ( Integer index : matrices . keySet ( ) ) result . put ( index , get ( index ) . apply ( unaryFunction ) ) ; else { result . setProcedureFactory ( procedureFactory ) ; double expressionLock = procedureFactory . startExpression ( this ) ; for ( Integer index : matrices . keySet ( ) ) result . put ( index , get ( index ) . apply ( unaryFunction ) ) ; procedureFactory . createUnaryFunctionExpression ( expressionLock , this , result , unaryFunction ) ; } }
Applies unaryFunction to this MMatrix.<br>
 Example of operation can be applying square root operation to this matrix.<br>
 Applies masking if MMatrix is masked.<br>
Applies unaryFunction to this MMatrix . <br > Example of operation can be applying square root operation to this matrix . <br > Applies masking if MMatrix is masked . <br >