src/utils/matrix/operation/AbstractMatrixOperation.java
protected void applyMatrixOperation() throws MatrixException {
        final int rows = getRows();
        final int columns = getColumns();
        final Matrix other = getAnother();
        final boolean provideValue = getProvideValue();
        final int rowStride = getStride();
        final int columnStride = getStride();
        final Matrix targetMatrix = getTargetMatrix();
        if (!hasMask(targetMatrix, other)) {
            if (provideValue) {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        apply(row, column, targetMatrix.getValue(row, column));
                    }
                }
            }
            else {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        apply(row, column, 0);
                    }
                }
            }
        }
        else {
            if (provideValue) {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        if (!hasMaskAt(row, column, targetMatrix, other)) {
                            applyMask(row, column, targetMatrix.getValue(row, column));
                        }
                    }
                }
            }
            else {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        if (!hasMaskAt(row, column, targetMatrix, other)) {
                            applyMask(row, column, 0);
                        }
                    }
                }
            }
        }
    }
/**
     * Applies matrix operation.
     *
     * @throws MatrixException throws exception if matrix operation fails.
     */
Applies matrix operation.

@throws MatrixException throws exception if matrix operation fails.
Applies matrix operation . @throws MatrixException throws exception if matrix operation fails .
protected void applyMatrixOperation() throws MatrixException {
        final int rows = getRows();
        final int columns = getColumns();
        final Matrix other = getAnother();
        final boolean provideValue = getProvideValue();
        final int rowStride = getStride();
        final int columnStride = getStride();
        final Matrix targetMatrix = getTargetMatrix();
        if (!hasMask(targetMatrix, other)) {
            if (provideValue) {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        apply(row, column, targetMatrix.getValue(row, column));
                    }
                }
            }
            else {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        apply(row, column, 0);
                    }
                }
            }
        }
        else {
            if (provideValue) {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        if (!hasMaskAt(row, column, targetMatrix, other)) {
                            applyMask(row, column, targetMatrix.getValue(row, column));
                        }
                    }
                }
            }
            else {
                for (int row = 0; row < rows; row += rowStride) {
                    for (int column = 0; column < columns; column += columnStride) {
                        if (!hasMaskAt(row, column, targetMatrix, other)) {
                            applyMask(row, column, 0);
                        }
                    }
                }
            }
        }
    }
protected void applyMatrixOperation ( ) throws MatrixException { final int rows = getRows ( ) ; final int columns = getColumns ( ) ; final Matrix other = getAnother ( ) ; final boolean provideValue = getProvideValue ( ) ; final int rowStride = getStride ( ) ; final int columnStride = getStride ( ) ; final Matrix targetMatrix = getTargetMatrix ( ) ; if ( ! hasMask ( targetMatrix , other ) ) { if ( provideValue ) { for ( int row = 0 ; row < rows ; row += rowStride ) { for ( int column = 0 ; column < columns ; column += columnStride ) { apply ( row , column , targetMatrix . getValue ( row , column ) ) ; } } } else { for ( int row = 0 ; row < rows ; row += rowStride ) { for ( int column = 0 ; column < columns ; column += columnStride ) { apply ( row , column , 0 ) ; } } } } else { if ( provideValue ) { for ( int row = 0 ; row < rows ; row += rowStride ) { for ( int column = 0 ; column < columns ; column += columnStride ) { if ( ! hasMaskAt ( row , column , targetMatrix , other ) ) { applyMask ( row , column , targetMatrix . getValue ( row , column ) ) ; } } } } else { for ( int row = 0 ; row < rows ; row += rowStride ) { for ( int column = 0 ; column < columns ; column += columnStride ) { if ( ! hasMaskAt ( row , column , targetMatrix , other ) ) { applyMask ( row , column , 0 ) ; } } } } } }
Applies matrix operation.
Applies matrix operation .