2 writes to _rgit
Microsoft.ML.Core (2)
Utilities\HashArray.cs (2)
52
_rgit
= new int[HashHelpers.Primes[0]];
184
_rgit
= new int[size];
22 references to _rgit
Microsoft.ML.Core (22)
Utilities\HashArray.cs (22)
53
for (int i = 0; i <
_rgit
.Length; i++)
54
_rgit
[i] = -1;
62
Contracts.AssertValue(
_rgit
);
63
Contracts.AssertNonEmpty(
_rgit
);
69
Contracts.Assert(Utils.Size(
_rgit
) >= _ct || Utils.Size(
_rgit
) == HashHelpers.MaxPrimeArrayLength);
74
return (int)((uint)hash %
_rgit
.Length);
100
Contracts.Assert(0 <= iit && iit <
_rgit
.Length);
101
int it =
_rgit
[iit];
151
Contracts.Assert(0 <= iit && iit <
_rgit
.Length);
161
_entries[_ct].ItNext =
_rgit
[iit];
162
_rgit
[iit] = _ct;
164
if (++_ct >=
_rgit
.Length)
178
Contracts.Assert(size >=
_rgit
.Length);
179
if (size <=
_rgit
.Length)
208
for (int i = 0; i <
_rgit
.Length; i++)
209
_rgit
[i] = -1;
214
_entries[it].ItNext =
_rgit
[iit];
215
_rgit
[iit] = it;
223
for (int i = 0; i <
_rgit
.Length; i++)
225
if (
_rgit
[i] >= 0)
228
Console.WriteLine("Table: {0} out of {1}", c,
_rgit
.Length);