2 writes to _rgv
Microsoft.ML.Core (2)
Utilities\Heap.cs (2)
31
_rgv
= new List<T>();
49
_rgv
= new List<T>(capacity);
28 references to _rgv
Microsoft.ML.Core (28)
Utilities\Heap.cs (28)
32
_rgv
.Add(default(T));
50
_rgv
.Add(default(T));
60
Contracts.AssertValue(
_rgv
);
61
Contracts.Assert(
_rgv
.Count > 0);
83
return
_rgv
.Count - 1;
105
_rgv
[iv] = v;
114
_rgv
.RemoveRange(1,
_rgv
.Count - 1);
126
if (
_rgv
.Count <= 1)
128
return
_rgv
[1];
140
int cv =
_rgv
.Count;
143
T vRes =
_rgv
[1];
144
_rgv
[1] =
_rgv
[--cv];
145
_rgv
.RemoveAt(cv);
161
int iv =
_rgv
.Count;
162
_rgv
.Add(item);
170
Contracts.Assert(0 < iv && iv <
_rgv
.Count);
172
T v =
_rgv
[iv];
174
for (; (ivPar = Parent(iv)) > 0 && _fnReverse(
_rgv
[ivPar], v); iv = ivPar)
175
MoveTo(
_rgv
[ivPar], iv);
181
Contracts.Assert(0 < iv && iv <
_rgv
.Count);
183
int cv =
_rgv
.Count;
184
T v =
_rgv
[iv];
188
if (ivChild + 1 < cv && _fnReverse(
_rgv
[ivChild],
_rgv
[ivChild + 1]))
190
if (!_fnReverse(v,
_rgv
[ivChild]))
192
MoveTo(
_rgv
[ivChild], iv);