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)
45if (_map[index] >= 0) 47int position = _map[index]; 60_map[_inverseMap[stealPosition]] = -1; 61_map[index] = stealPosition; 70if (_map[fromIndex] < 0) 73int stealPosition = _map[toIndex] = _map[fromIndex]; 76_map[fromIndex] = -1; 86for (int i = 0; i < _map.Length; ++i) 87_map[i] = -1;