1 write to _map
Microsoft.ML.FastTree (1)
Utils\MappedObjectPool.cs (1)
29
_map
= Enumerable.Range(0, maxIndex).Select(x => -1).ToArray(maxIndex);
10 references to _map
Microsoft.ML.FastTree (10)
Utils\MappedObjectPool.cs (10)
45
if (
_map
[index] >= 0)
47
int position =
_map
[index];
60
_map
[_inverseMap[stealPosition]] = -1;
61
_map
[index] = stealPosition;
70
if (
_map
[fromIndex] < 0)
73
int stealPosition =
_map
[toIndex] =
_map
[fromIndex];
76
_map
[fromIndex] = -1;
86
for (int i = 0; i <
_map
.Length; ++i)
87
_map
[i] = -1;