src/utils/matrix/AbstractMatrix.java
public Matrix apply(UnaryFunction unaryFunction) throws MatrixException {
        Matrix result = apply(getNewMatrix(), unaryFunction.getFunction());
        apply(result, unaryFunction);
        return result;
    }
/**
     * 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 unaryFunction unaryFunction to be applied.
     * @return matrix which stores operation result.
     * @throws MatrixException not thrown in any situation.
     */
Applies unaryFunction to this matrix.
Example of operation can be applying square root operation to this matrix.
Applies masking if matrix is masked.

@param unaryFunction unaryFunction to be applied.
@return matrix which stores operation result.
@throws MatrixException not thrown in any situation.
Applies unaryFunction to this matrix . Example of operation can be applying square root operation to this matrix . Applies masking if matrix is masked . @param unaryFunction unaryFunction to be applied . @return matrix which stores operation result . @throws MatrixException not thrown in any situation .
public Matrix apply(UnaryFunction unaryFunction) throws MatrixException {
        Matrix result = apply(getNewMatrix(), unaryFunction.getFunction());
        apply(result, unaryFunction);
        return result;
    }
public Matrix apply ( UnaryFunction unaryFunction ) throws MatrixException { Matrix result = apply ( getNewMatrix ( ) , unaryFunction . getFunction ( ) ) ; apply ( result , unaryFunction ) ; return result ; }
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 >