3 writes to _indices
Microsoft.ML.Data (3)
Data\BufferBuilder.cs (3)
127
_indices
= new int[8];
183
Array.Resize(ref
_indices
, Math.Max(Math.Min(_length, checked(_count * 2)), 8));
211
Array.Resize(ref
_indices
, Math.Max(Math.Min(_length, checked(_count * 2)), 8));
28 references to _indices
Microsoft.ML.Data (28)
Data\BufferBuilder.cs (28)
83
Contracts.Assert(
_indices
!= null || _length == 0);
84
Contracts.Assert(Utils.Size(
_indices
) >= _count);
126
else if (
_indices
== null)
174
Contracts.Assert(
_indices
!= null);
182
if (
_indices
.Length <= _count)
186
_indices
[_count] = index;
210
if (
_indices
.Length <= _count)
213
if (_count >= InsertThreshold &&
_indices
[_count - InsertThreshold] > index)
216
_indices
[_count] = index;
229
int diff =
_indices
[ivDst] - index;
240
Contracts.Assert(ivDst < 0 ||
_indices
[ivDst] < index);
242
Contracts.Assert(ivDst == _count ||
_indices
[ivDst] > index);
247
_indices
[i + 1] =
_indices
[i];
250
_indices
[ivDst] = index;
267
Array.Sort(
_indices
, _values, 0, _count);
286
_indices
[ivDst++] =
_indices
[ivSrc];
290
if (
_indices
[ivDst - 1] ==
_indices
[ivSrc])
299
_indices
[ivDst] =
_indices
[ivSrc];
329
int index =
_indices
[iivSrc];
370
int iv = Utils.FindIndexSorted(
_indices
, 0, _count, ifeat);
371
Contracts.Assert(iv == 0 || ifeat >
_indices
[iv - 1]);
375
Contracts.Assert(ifeat <=
_indices
[iv]);
376
if (ifeat ==
_indices
[iv])
462
_indices
.AsSpan(0, _count).CopyTo(editor.Indices);