public void Clear() { for (int r = 0; r < Rows; r++) { for (int c = 0; c < Cols; c++) { matrix[r][c] = 0; } } }