public double this[Func<double, bool> f] { set { for (int i = 0; i < Rows; i++) for (int j = 0; j < Cols; j++) if (f(_matrix[i][j])) this[i, j] = value; } }