Beispiel #1
0
        public T GetValue(int row, int column)
        {
            DenseArray <T> array = this.GetRow(row, false);

            if (array != null)
            {
                return(array[column]);
            }
            return(default(T));
        }
Beispiel #2
0
 public void ClearRows(int row, int count)
 {
     for (int i = 0; i < count; i++)
     {
         DenseArray <T> array = this._table[row + i];
         if (array != null)
         {
             array.Clear();
         }
     }
 }
Beispiel #3
0
 public void Clear(int row, int column, int rowCount, int columnCount)
 {
     for (int i = 0; i < rowCount; i++)
     {
         DenseArray <T> array = this.GetRow(i + row, false);
         if (array != null)
         {
             array.Clear(column, columnCount);
         }
     }
 }
Beispiel #4
0
        DenseArray <T> GetRow(int row, bool create)
        {
            DenseArray <T> array = this._table[row];

            if (create && (array == null))
            {
                array            = new DenseArray <T>(this.columnCount);
                this._table[row] = array;
            }
            return(array);
        }