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

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