src/utils/matrix/ComputableMatrix.java
public Matrix apply(Matrix result, Matrix.MatrixUnaryOperation matrixUnaryOperation) throws MatrixException {
        if (result.getRows() != getRows() || result.getColumns() != getColumns()) {
            throw new MatrixException("Incompatible result matrix sizes: " + result.getRows() + "x" + result.getColumns());
        }
        return new UnaryMatrixOperation(getRows(), getColumns(), matrixUnaryOperation).apply(this, 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 matrixUnaryOperation single variable operation defined as lambda operator.
     * @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 matrixUnaryOperation single variable operation defined as lambda operator.
@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 matrixUnaryOperation single variable operation defined as lambda operator . @return matrix which stores operation result . @throws MatrixException not thrown in any situation .
public Matrix apply(Matrix result, Matrix.MatrixUnaryOperation matrixUnaryOperation) throws MatrixException {
        if (result.getRows() != getRows() || result.getColumns() != getColumns()) {
            throw new MatrixException("Incompatible result matrix sizes: " + result.getRows() + "x" + result.getColumns());
        }
        return new UnaryMatrixOperation(getRows(), getColumns(), matrixUnaryOperation).apply(this, result);
    }
public Matrix apply ( Matrix result , Matrix . MatrixUnaryOperation matrixUnaryOperation ) throws MatrixException { if ( result . getRows ( ) != getRows ( ) || result . getColumns ( ) != getColumns ( ) ) { throw new MatrixException ( "Incompatible result matrix sizes: " + result . getRows ( ) + "x" + result . getColumns ( ) ) ; } return new UnaryMatrixOperation ( getRows ( ) , getColumns ( ) , matrixUnaryOperation ) . apply ( this , 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 >