src/utils/matrix/operation/WinogradConvolutionMatrixOperation.java
private void maskZeros(Matrix matrix) {
        matrix.setMask();
        int matrixRows = matrix.getRows();
        int matrixColumns = matrix.getColumns();
        Mask matrixMask = matrix.getMask();
        for (int row = 0; row < matrixRows; row++) {
            for (int column = 0; column < matrixColumns; column++) {
                if (matrix.getValue(row, column) == 0) matrixMask.setMask(row, column, true);
            }
        }
    }
/**
     * Masks matrix positions with zero value to avoid unnecessary calculations.
     *
     * @param matrix matrix to be masked.
     */
Masks matrix positions with zero value to avoid unnecessary calculations.

@param matrix matrix to be masked.
Masks matrix positions with zero value to avoid unnecessary calculations . @param matrix matrix to be masked .
private void maskZeros(Matrix matrix) {
        matrix.setMask();
        int matrixRows = matrix.getRows();
        int matrixColumns = matrix.getColumns();
        Mask matrixMask = matrix.getMask();
        for (int row = 0; row < matrixRows; row++) {
            for (int column = 0; column < matrixColumns; column++) {
                if (matrix.getValue(row, column) == 0) matrixMask.setMask(row, column, true);
            }
        }
    }
private void maskZeros ( Matrix matrix ) { matrix . setMask ( ) ; int matrixRows = matrix . getRows ( ) ; int matrixColumns = matrix . getColumns ( ) ; Mask matrixMask = matrix . getMask ( ) ; for ( int row = 0 ; row < matrixRows ; row ++ ) { for ( int column = 0 ; column < matrixColumns ; column ++ ) { if ( matrix . getValue ( row , column ) == 0 ) matrixMask . setMask ( row , column , true ) ; } } }
Masks matrix positions with zero value to avoid unnecessary calculations.
Masks matrix positions with zero value to avoid unnecessary calculations .