void Resize(int size) { LinearProbingHashST <TKey, TValue> table = new LinearProbingHashST <TKey, TValue>(size); for (int i = 0; i < tableSize; i++) { if (Keys[i] != null) { table.Put(Keys[i], Values[i]); } } Keys = table.Keys; Values = table.Values; this.tableSize = size; }
public SparseVector() { st = new LinearProbingHashST <int, double>(); }